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.