Devise “Confirmation token is invalid” when user signs up

前端 未结 3 1829
感动是毒
感动是毒 2020-12-09 00:47

Using Rails 4 and Devise 3.1.0 on my web app. I wrote a Cucumber test to test user sign up; it fails when the \"confirm my account\" link is clicked from the e-mail.

3条回答
  •  我在风中等你
    2020-12-09 01:35

    As of devise 3.5.2, the confirmation token is no longer digested during the confirmation process. This means that the token in the email will match the token in the database.

    I was still having trouble with confirmations after figuring this out, but in my case it turned out to be a bug I introduced when I overrode find_first_by_auth_conditions. By fixing the bug I introduced in that method, I fixed my errors with confirmation.

提交回复
热议问题