Posted: 2 Jan 2017 4:02 EST Last activity: 4 Jan 2017 4:47 EST
Question on using flow action "SetPassword" and activity "ValidatePassword"
I am using the flow action "SetPassword", I added a post action activity to it to check the length of the password and whether it contians special character using activity "ValidatePassword". Upon comparing length of .pyPwdConfirm > 8 , the comparison is based on the encrypted value of .pyPwdConfirm. For example if .pyPwdConfirm was rules > 8 the comparison will return true because encrypted value > 8.
How shell we establish conditions on native pega password fields. I need the password to be at least 8 characters and includes 2 special characters.
***Updated by moderator: Lochan to add Categories; edited title***
If you are trying to validate the length of the password, why don't you validate the property for the corresponding field in the UI? You can use the OOTB pyPwdNew property and the edit validate rule, pzValidateOperPassword as your reference.