kentico_zdenekc
-
11/9/2009 6:43:34 PM
RE:Authentication On 3 Values
Hello,
well, you're partially right, we've been solving very similar request to achive this scenario recently.
Our logon process is built on standard membership provider and the custom security handler accepts just username and password, i.e. 2 values.
In our solution sketch, the modified logon form uses one additional field. Its value is appended to the username in the Login1_loggingIn handler method from logon form codebehind, and in the OnAuthentication method of the security handler, the username in the form "username_thirdfieldname" is split apart and required values are used. One disadvantage may appear if the login is not succesfull - the username with appended value would be displayed..
The solution with storage in session property is also possible (and might solve that issue).
Best regards, Zdenek C.
|