Ask and answer questions about WebRatio, WebML and BPMN

Hello,

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:

alt text

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,

Andres

asked 24 Jan, 15:13

andres625's gravatar image

andres625
01
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×1

Asked: 24 Jan, 15:13

Seen: 150 times

Last updated: 24 Jan, 15:13

©2001-2011 Web Models s.r.l. All rights reserved