By Thomas Jakobi (jako)

Loads a simple login/logout form, with password retrieval functionality and a register form snippet.

See the Official Documentation here: http://rtfm.modx.com/extras/revo/login

See bugs here: https://github.com/modxcms/Login/issues

Translate it on: https://crowdin.com/project/modx-login

Thomas Jakobi

New in Login 1.9.7

New in 1.9.7

  • Generate the password directly with modx->user->generatePassword()
  • Make it possible to set the usergroup rank when register a new user
  • Set an action in the default password reset form
  • Update Translations

New in 1.9.6

  • Register snippet PII improvements
  • JSON responses for the Login controller/snippet
  • Use Crowdin for translations: https://crowdin.com/project/modx-login
  • Update Translations
  • Use $modx->user->generatePassword for generating passwords
  • Escape MODX tags after htmlspecialchars because of the ampersand sign

New in 1.9.5

  • Fix ResetPassword passing null instead of an array to getChunk
  • Remove hashclass, salt and sessionid from placeholders
  • Prevent potential XSS in placeholders
  • Added two missing default template chunks
  • Fixing a charset issue in some language files
  • Fixing email validation [#110]
  • Disable User/E-mail Enumeration in ForgotPassword snippet by an empty sentTpl property (default)
  • New jsonResponse property for returning a JSON by the Register snippet (for an AJAX call response)
  • Possibility to reset the registration fields after successful registration

New in 1.9.4

  • Disable User/E-mail Enumeration
  • Enable login via email
  • Convert deprecated ereg functions to preg*
  • Fixing error placeholders with empty placeholderPrefix
  • Fixing recoverable error, Argument 2 to getChunk() must be of the type array, null given

New in 1.9.3

  • Added activePage property to ConfirmRegister controller
  • Added danish language files
  • Normalize placeholder prefix usage
  • Improved PHP7 compatibility
  • Added loggedinResourceId and loggedoutResourceId to the Login controller
  • Fix errors with square brackets in changed password
  • Add confirm password and password length validation messages to the field error placeholders too
  • Fill lu/lp placeholders in the change password form
  • Added hidden lu/lp fields to the lgnResetPassChangePassTpl chunk
  • Fix for array fields in Register/Profile/UpdateProfile snippet

New in 1.9.2

  • Fix sending register activation email
  • Fix ConfirmRegister processor

New in 1.9.1

  • [[!+error.message]] returns detailed error
  • [#42] Fixed URL encoding/decoding
  • Sanitise Login placeholders
  • Fixed namespace paths

New in 1.9.0

  • Expired/used password reset link notification
  • Added autoLogin and forceChangePassword to ResetPassword snippet
  • Added autoLogin param to Register snippet
  • Improved password reset functionality
  • Update form fields with new values when reloadOnSuccess=0
  • Replace parseChunk with getChunk
  • Added Arabic lexicons
  • Fixed invalid properties in logindictionary and updateprofile
  • Added czech lexicons

New in 1.8.1

  • Add password strength algorithm and checking properties to Register, via &ensurePasswordStrength property

New in 1.8.0

  • [#5946] Add ability to set User Group for a new user via the &usergroupsField property
  • [#7520] Fix bug with ConfirmRegister logging the user in as anonymous

New in 1.7.3

  • [#7035] Fix regression error with email field in Register snippet

New in 1.7.2

  • [#6194] Fix issue with UpdateProfile when specifying the non-active user to update
  • [#6538] Add removeExpiredRegistrations property to Register snippet for handling expired, unactivated registrations
  • [#6256] Ensure Register respects passwordField and emailField properties
  • [#6288] Fix error message display in ChangePassword

New in 1.7.1

  • [#5947] Fix issue with Profile with unauthenticated users
  • [#5979] Fix issue with ConfirmRegister and non-FURL sites
  • [#5734] Add &allowedFields to Register to allow restricting of submitted fields to a specific set
  • [#6010] Fix typo in UpdateProfile mismatching ID of profile to internalKey
  • [#5961] Add &trimPassword to automatically trim whitespace from submitted passwords
  • Add &generatePassword to automatically generate a password instead of having to provide one manually
  • [#6146] Add &validatePassword to Register to allow for manual password generation
  • [#5969] Add &user property to UpdateProfile to allow specifying user to update

New in 1.7.0

  • [#49] Update reCaptcha URLs
  • [#5793] Add errTpl and errTplType properties to ForgotPassword
  • [#5823] Fix issue where postHooks did not have fields available
  • [#5797] Fix issue where &authenticate was not respected in ConfirmRegister snippet
  • [#5796] Fix issue where errors could appear twice if user used validators on username/email/password fields
  • Add ActiveUsers snippet that shows a list of active, logged-in users
  • Fix errors with Register snippet in 1.7.0-rc1
  • Add file-based hooks to Login hook calls
  • Complete OOP refactoring to provide more stable development and better code isolation
  • Add unit test framework and over 30 tests
  • Add alternative plaintext email option for ability to send both html and plaintext in emails
  • [#5166] Add additional sanity decoding to ConfirmRegister processing

New in 1.6.5

  • [#5176] Fix issue with Registration in Revo 2.0 installations
  • Fix issue with some error messages not being wrapped with errTpl
  • Email validator now only checks for email validation, not required status
  • [#5166] Add additional sanity decoding to ConfirmRegister processing

New in 1.6.4

  • [#3588] Add &allowedFields and &allowedExtendedFields to UpdateProfile to restrict fields that are updated
  • [#4744] Add &redirectToOnFailedAuth parameter for redirecting to a separate page on failed logins
  • [#3263] Remove duplicate error spans in validator output

New in 1.6.3

  • [#5088] Fix issue with ChangePassword &validateOldPassword and Revo 2.1.1
  • Better support for checkboxes/radios/bracketed fields in login validator

New in 1.6.2

  • [#4844] Automatically trim trailing whitespace/newlines in validator calls
  • [#4843] Fix issue with sentTplType not being respected in ForgotPassword
  • [#4936] Fix issue in ForgotPassword that occurred if no user was found with that username
  • [#5019] Add backwards compatibility for Revo 2.0.x users in ResetPassword
  • Fix reference to $this->modx->lexicon in Login Snippet

New in 1.6.1

  • [#4886] Fix issue with variable variable in main login class when loading validators/hooks
  • [#4487] Prevent usage of mb_ereg if not installed
  • [#3500] Fix issues with inline tplType params in Login snippets
  • [#4545] Fix issue with OnBeforeUserActivate event
  • Support for MODX Revolution 2.1.x

New in 1.5.2 

  • [#3330] Add sanity checks to prevent possible submitVar data adding in UpdateProfile
  • Add support for moderation of users when done in a prehook
  • Add support for redirectBackParams that can send encoded data through a login/registration process
  • Add a generic validation error in Register to allow for general messages
  • Ensure preHooks run before password validation in ChangePassword snippet
  • Fix issue with placeholderPrefix in UpdateProfile snippet

 New in 1.5.1

  • [#44] Fix bug with login validator, &validate parameter
  • [#40] Fix issue with syncUsername in UpdateProfile
  • [#42] Respect allow_multiple_emails setting that prevents users with same email addresses
  • [#43] Add workaround for xPDO bug with NULL fields in modUserProfile
  • Add &validate ability to Register/UpdateProfile snippets
  • Enhance Validators in Register/UpdateProfile to FormIt-standards
  • Trim each hook specification in hooks calls
  • [#28] Fixed validator issue in UpdateProfile
  • Added redirectTo and redirectParams on ForgotPassword snippet
  • Updated events in ResetPassword snippet to pass user object
  • Fixed UpdateProfile to properly update user obj so derivative User classes can manage profile updates



    September 20, 2018
    Supported Versions
    2.5 – Current

    More from Thomas Jakobi


    Toggle the visibility of TV sets by the value of a TV


    Convert MODX resources to PDF files using mPDF


    Advanced Listbox/Resource List template variable


    Collect registered javascript/css files/chunks and minify them