I've created a profile page in which a member can update their info. However when a member changes their email (which we use as login), this user is immediately logged out and has to log in again with the new email.
How can I log this member in programmatically?
Members.Login(<username>, <password>)
won't work in this instance as I cannot retrieve the plain text version of the password. When creating a member you get this from you form. In this case it's an existing user.
Logging a member in after changing his login
Hello,
I've created a profile page in which a member can update their info. However when a member changes their email (which we use as login), this user is immediately logged out and has to log in again with the new email.
How can I log this member in programmatically?
won't work in this instance as I cannot retrieve the plain text version of the password. When creating a member you get this from you form. In this case it's an existing user.
Help much appreciated.
Hi Giovanni,
What authentication method are you using ? If it's Forms you have to add new auth Cookies for username.
Thanks, Alex
Thanks very much Alex. it works!
is working on a reply...