I like the setting autoLoginAfterAccountActivation. Is there something similar to log in users after a password reset?

I can approximate this by using the users.onSetPassword event, confirming the user isn't already logged in (i.e. using a normal set password form), and confirming that the user model doesn't have an unverifiedEmail value (i.e. is a brand new user), and then using craft->userSession->loginByUserId() but this seems like a very roundabout and potentially stupid way to do this.

2 Answers 2


Currently nothing native like that. The full list of Craft config settings can be found here.

You might want to consider adding this as a feature request, though!


I think you can do this by using the following hidden field in your template:

<input type="hidden" name="redirect" value="path/after_reset">

See this page for more details: Craft Set Password Form Template

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.