Difference between revisions of "Password Variables to Set or Reset User Passwords"

From SmartWiki
Jump to: navigation, search
(Existing Users)
Line 58: Line 58:
 
* [[User Email Templates]]
 
* [[User Email Templates]]
  
[[Category:System Management]][[Category:Sign-Up Features]][[Category:Variables]][[Category:Security]]
+
[[Category:Authentication]][[Category:Variables]]

Revision as of 13:40, 20 October 2017

Variables can be used within SmartSimple to automatically generate system passwords.


New Users

To generate a new password for a new user.

@password@

This can be used in:


Existing Users

To generate a new password for an existing user.

@randompassword@

This can be used in:


In the Request Password section of User Email Templates, the following variables can be used to create a time-delimited link for password resets.

http://@url@@activationlink@

See Password Policy for further details.

New or Existing Users

To generate a new password for a new user or sends the words "existing password" for existing users (see Notes below)

@checkactivatedpassword@

To generate a new password for a new user or sends the words "existing password" for existing users AND to promote user to admin/portal type user.

@checkportalpassword@

These can be used in:

Notes

Translation

Because of the complex nature of the password creation and validation process it is not possible to automatically translate existing password into other languages. If you are sending an e-mail containing the @checkactivatedpassword@ variable you can use the following syntax to display text other than "existing password" if required.

For example, for an existing user the following will show the French translation of existing password which is Mot de passe courant. If the user has not been previously activated the syntax will provide a randomly generated password as normal:

<!--@sscalculation(if(trim("@checkactivatedpassword@")="existing password","Mot de passe courant","@checkactivatedpassword@"))-->

Processing Time

System-generated emails that contain passwords bypass the typical Service Process Manager and, hence, are sent out immediately rather than being put in an email queue.

See Also