Jump to content

Remember me functionality


Hari KT
 Share

Recommended Posts

So, I was looking to implement the remember me for the login. I didnot find a module for that.

The functionality will be some token saved on the user side, and on the first request make the user authenticate if he/she has the token with the request.

So the question is what will be the first hook, which will be called, so I can implement the hook to add the implementation.

Do you have any insights on the same?

Link to comment
Share on other sites

First of all, I'll assume that you've read enough to know that there are more than a few gotchas to be taken into consideration. The tricky part, IMHO, isn't implementing this for ProcessWire -- getting it right and making it secure is way more complicated.

Once you got that figured out, you could set the token or whatever method you're using right after successful Session::login. Other part, logging the user in, depends on how and where you prefer this to happen. ProcessLogin::execute is one option you might want to consider.

Hope that helps a bit.

  • Like 7
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...