I've been having some trouble with an impersonate unit which allows an administrator to view a page as if it were another user (logs in as another user - an 'applicant'). The administrator chooses the user to 'impersonate' from a list of applicants and then the id is used to query the DB (the Selected Applicant selector unit) to find the username and password (applicant's account selector unit) to pass to the login unit called impersonate. This is shown in the following snippet:
My problem is that the the password field in the DB is encrypted. Since the login unit expects the password to be entered unencrypted by the user, it is encrypting it again, and thus the log-in fails when comparing it to the password in the DB. Is there any way to modify this particular behavior so that it doesn't encrypt the password again? I cannot disable encryption overall because the other login units do need to encrypt the password when typed by a user at the login page. Alternately, can I simply not compare passwords? How can I do this?
Thanks for any help,