Rails 4 + Devise: Password Reset is always giving a “Token is invalid” error on the production server, but works fine locally.

后端 未结 5 1524
再見小時候
再見小時候 2020-12-05 04:05

I have a Rails 4 application set up to use Devise, and I\'m running a problem with password resets. I have the mailer set up, and the password reset email sends fine. The li

5条回答
  •  抹茶落季
    2020-12-05 04:46

    If you are taking the URL from a log, it can appear like this:

    web_1      | 

    Change password

    In this case, using 3DJ5Z5g6QNVQb3ZXkiKjTx as the token will not work because =3D is really an = character encoded.

    In this case, you need to use J5Z5g6QNVQb3ZXkiKjTx (with 3D removed)

提交回复
热议问题