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

前端 未结 3 1015
时光取名叫无心
时光取名叫无心 2020-12-15 08:21

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 ad

3条回答
  •  温柔的废话
    2020-12-15 08:26

    I simply needed to do this in my User model, instead of using allow_unconfirmed_access_for:

      protected
        def confirmation_required?
          false
        end
    

提交回复
热议问题