pyChangePassword harness does not load
SummaryThe requirement is to show Change password screen if any operator profile password changes by third or IT security person.
Added a step in the application activity to "pyChangePassword" into "true". This should kick off "pzShowCPHarness activity" or "pyChangePassword Harness".
This works fine first time, if the same operator profile is updated one more time, the pyChangePassword section is not loaded.
Steps to Reproduce
- Add a Property-Set in OnBefore Display activity with the following pre-conditions 1) @(Pega-RULES:String).equalsIgnoreCase(.pyPwdOld, .pyPwdCurrent) 2) @(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, .pxUpdateOperator).
- Change user password as an Admin.
- Log in with user - user changes their own password per prompt.
- Change user password again as an Admin.
- User logs in again.
An issue in the custom application code or rule : The second condition was not firing correctly.
ResolutionFirstly, instead of using the OnBeforeDisplay activity use the operator Pre-Save activity (defined in Data-Admin-Operator-ID).
Secondly use the following precondition:@(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, pxRequestor.pyUserIdentifier)
In place of
Published November 4, 2016 - Updated November 11, 2016