Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Authorisation via an e-mail View modes: 
User avatar
Member
Member
Sergey Kovalev - 12/1/2009 2:26:41 AM
   
Authorisation via an e-mail
Hi!

Have faced a problem how correctly to make, that users at registration and authorisation specified only an e-mail and the password. By a principle as it is made on devnet.kentico.com.

User avatar
Member
Member
Sergey Kovalev - 12/4/2009 6:05:22 AM
   
RE:Authorisation via an e-mail
Itself has understood

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 12/22/2009 8:26:06 AM
   
RE:Authorisation via an e-mail
Hello Sergey,

Am I getting it right -- that you have been able to make this by yourself?

Which principle / devnet article do you mean in particular?


Anyway, the key steps of this solution (to be general) would be:

- create CustomSecurityHandler and in its OnAuthentication method test if the user is not yet authenticated, and optionally find the user by the email (as we suppose the email has been entered instead of username),
-- authenticate against entered password and return the UserInfo object.

- in each logon webpart (e.g. LogonForm), in Login1_LoggedIn() method, ensure setting the proper FormAuthenticationCookie (for the real username, not the email passed through the username textbox).


Regards,
Zdenek C.