I'm making a recover password process. The user receive an email with
a link and when he follows it, an action enables his acount. The
problem is that then, I want to redirect the user to his settings, so
I need to authenticate the user automatically.
How I can do it? I don't know how to start...
Thanks
Rick Flosi
unread,
Sep 8, 2008, 2:22:12 PM9/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to aut...@googlegroups.com
The url you send the user should not require authentication.
The controller there should validate the url parameters to determine that it's a valid request and who the user is and expire that url. Then set a new generated password for the user. Then you need to create and set the AuthKit cookie for the user. Now they should be logged in, so just redirect them to the settings url and have them reset their password. (I am assuming you are storing passwords encrypted and that you can't actually retrieve the password.)
You'll have to dig into the AuthKit code for setting the cookie. Maybe there is a function you can just call. I don't know off hand.
Make sense?
-r.
Jordi Fernández
unread,
Sep 8, 2008, 2:27:30 PM9/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to aut...@googlegroups.com
Ok, I have all the process, only I need to set the AuthKit Cookie. I'm going to see how to do it.