devise-confirmable

Devise “Confirmation token is invalid” when user signs up

为君一笑 提交于 2019-11-27 01:44:38
问题 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. Scenario: User signs up with valid data # features/users/sign_up.feature:9 When I sign up with valid user data # features/step_definitions/user_steps.rb:87 Then I should receive an email # features/step_definitions/email_steps.rb:51 When I open the email # features/step_definitions/email_steps.rb:76 Then I should see the email

Why won't Devise allow unconfirmed users to login even when allow_unconfirmed_access_for is set?

半腔热情 提交于 2019-11-25 15:17:46
We have an existing user base and are adding email confirmation. Confirmation is optional, but will allow additional features. Users are not required to confirm. I've added the confirmable module and ran migrations. Confirmation works as advertised. But, users cannot login since they are not confirmed. All current users have nil confirmation values, which is what we want (users can go back and confirm their email at any time). I've followed all the Devise wiki articles and set allow_unconfirmed_access_for in the initializer: config.allow_unconfirmed_access_for = 10.years I've also tried