Pre-Login Token Links in Motion 2 Notifications
A pre-login token link signs the person in automatically when they click it, so they land on their task without typing a password.
Current method: recipient_pre_login_token
In the body of a Send Notification trigger (not the subject), wrap the link to the page in the recipient_pre_login_token modifier:
{'https://yoursite.org/task/'|cat:$taskAssignmentId|recipient_pre_login_token:432000:'task-link'}
- The link signs in the person the notification is sent to, so each person in a multi-person role gets their own link. It does not take a person or role id.
- The number is the time in seconds before the link expires. The maximum, and the default, is 432000 seconds (5 days).
- The text in quotes is a label for the link.
- The URL must be an https address on one of your own site's domains.
- If the message is also copied to someone else (a CC or additional receiver on the Process Notification system message), the link is sent as a plain link that does not sign anyone in.
Older syntax: pre_login_token
Older notifications use pre_login_token with the person or role id, followed by the time in seconds:
pre_login_token:$PersonalReference.0.id:3600|
In this case, it would set that token to expire in an hour. Add a : for an extra parameter (:3600 in the case above; it must come after the person/role id). By default, this older token is set to expire in 3 days (259200 seconds). So if no time is set, the link will expire in 3 days.
.png)
.png)