Password Variables to Set or Reset User Passwords

From SmartWiki
Revision as of 13:15, 7 October 2013 by Ciaran Donnelly (talk | contribs) (New or Existing Users)

Jump to: navigation, search

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:

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