开发者

How to skip email confirmation for users who uses Devise rpx conecteable

开发者 https://www.devze.com 2023-04-06 23:33 出处:网络
I am working on a mini project and i dont know how to skip email confirmation for users who uses devise_rpx_connectable开发者_运维百科_to sign in, Every time i try to sign in using this services it se

I am working on a mini project and i dont know how to skip email confirmation for users who uses devise_rpx_connectable开发者_运维百科_to sign in, Every time i try to sign in using this services it sends email confirmation to those users.


you can always override this method in User class:

def confirmation_required?
      !confirmed?
end

for example you can check there if rpx_identifier.blank?

try this code:

def confirmation_required?
      !confirmed? and rpx_identifier.blank?
end
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号