I am trying to use devise reset_password_token to force users to change their password at first login using what I read here: Rails Devise: Set password reset token and redirect user
I get to loading a page that says “set your password”, but every time I click submit, a notification appears saying that reset_password_token has expired and request a new one. I tried setting reset_password_token for the variable instead of accessing through the user object (@ user.reset_password_token), in case the expiration is calculated, if this token was reached, but it still says that it expired when I try to set my initial password. I'm not sure how the calculation is calculated, does anyone have an idea?
devise ruby-on-rails-plugins
jshou
source share