ruby on rails 4 - Devise: Don't redirect on password reset if already logged in -
if user logged in , clicks on password reset link email, automatically redirected logged in area. want user able reset password, logged in or not. how prevent redirect?
what trying is, use devise recoverable
module change logged in user password. not recoverable
module built for.
as per carlosantoniodasilva
, collaborator of devise
this feature recovering passwords, not signed in users change passwords. if want that, can use registerable module or handle yourself.
registerable
module handles signing users through registration process, allowing them edit , destroy account.
Comments
Post a Comment