Difference between revisions of "UTA Workflows and the Password Variables"

From SmartWiki
Jump to: navigation, search
Line 52: Line 52:
  
 
  Password is: @password@
 
  Password is: @password@
+
 
 
1. Project Lead system [[Role|role]] is added to the [[User|user]]'s profile
 
1. Project Lead system [[Role|role]] is added to the [[User|user]]'s profile
  
Line 58: Line 58:
  
 
  Password is: '''ABCDEFGH''' ''[a new, randomized password]''
 
  Password is: '''ABCDEFGH''' ''[a new, randomized password]''
+
 
 
If the [[User|user]] is activated then the system sends:
 
If the [[User|user]] is activated then the system sends:
  

Revision as of 09:55, 26 September 2013

Different password variables can be used depending on the workflow task type.

UTA Assignment task type uses @password@

Acknowledgment task type uses @randompassword@ or @checkactivatedpassword@


Workflow Task Type: UTA Assignment

@password@

adds UTA role assigned to the user as a system role on the user's profile

checks if the user is activated

  • if the user is not activated then generates a new random password
  • if the user is activated then sends the text "current password"

For example

The user is assigned to a UTA Level 1 with the role Project Lead and a workflow message has the following content:

Password is: @password@

1. Project Lead is added to the user's profile

2. If the user is not activated then the system sends:

Your password is: ABCDEFGH

If the user is activated then the system sends:

Password is: current password


Workflow Task Type: Acknowledgement

@randompassword@

@checkactivatedpassword@

checks if the user is activated

  • if the user is not activated then generates a new random password
  • if the user is activated then sends the text "existing password" (see Notes below)

For example

The user is assigned to a UTA Level 1 with the role Project Lead and a workflow message has the following content:

Password is: @password@

1. Project Lead system role is added to the user's profile

2. If the user is not activated then the system sends:

Password is: ABCDEFGH [a new, randomized password]

If the user is activated then the system sends:

Password is: current password

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@"))-->


See Also