Support Article
pyChangePassword harness does not load
SA-30002
Summary
The 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.
Error Messages
Not applicable
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.
Root Cause
An issue in the custom application code or rule : The second condition was not firing correctly.
Resolution
Firstly, 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
@(Pega-RULES:String).equalsIgnoreCase(.pyUserIdentifier, .pxUpdateOperator)
Published November 12, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.