Jump to content

Recommended Posts

Posted

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?

Posted

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
Posted

Hey @teppo

You are right, I am bringing more security risks with remember me ;-) . And thank you for the help. I will try those and get back on it in the coming days.

  • Like 1
Posted

Hey @teppo ,

I did tested with the 

ProcessLogin::execute

. But that is not the hook needed. I need the

ProcessController::execute

hook.

Thank you.

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
×
×
  • Create New...