Upgrading to devise 3.1 => getting Reset password token is invalid

前端 未结 6 2309
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 02:53

Solution

Thanks to this gist form Steven Harman, I got it working. devise_mail_helpers.rb

module Features
  module MailHelpers

             


        
6条回答
  •  孤城傲影
    2020-12-15 03:15

    As others have noted: the reason is that the view which generates the mail which includes the reset password link needs to be changed.

    I saw this error because I was still using the devise-i18n-views gem, which generates the old link. Removing that gem and relying on the views which are now a part of the devise-i18n gem solved the problem for me.

提交回复
热议问题