Password field decryption through activity and comparing the confirm password and password to add on section
Problem statement-
Recently i had faced challenges on one particular scenario.
1. Business had create new user/operator screen. where it had new password and confirm password text input password fields.
2. On button click we were suppose to compare the password to add and password to confirm.
3. when we tried simply comparing the property values on these input fields we found that comparison was not working since the values of properties were encrypted.
Solution-
1. we added logic in activity , we created a step that will decrypt password to add and confirm password , and compare those values post decryption. condition in when rule is as below this is expression
@decryptPW(.newPass)==@decryptPW(.confirmPass)
2. based on miss match we added page message on clipboard