This task can be accomplished by validating user-entered passwords in the ChangePasswordOnLogonParameters and ChangePasswordParameters detail views. Here, we create a code rule to check password complexity using a custom function. This rule should be checked in a custom context, attached to the DialogOK action, because ChangePasswordOnLogonParameters is a non-persistent object, and the Save context is not appropriate for it.
Also, we have to explicitly initialize the validation rule set, otherwise validation won't work prior to user login.
For additional information, refer to the Non Persistent Objects Validation help topic.
Question Comments
Added By: Joël van der Meer at: 6/28/2012 5:42:49 AM
This works perfect...but I can't figure out how to make it also work when resetting a password. Apartly it's another action or context, but wich?
Added By: Eduardo Jimenez at: 9/24/2015 2:52:42 PMWe are having the same problem: password complexity is not being verified during password reset. Can you please indicate how to enable this under 'Change password on first logon'