简体   繁体   English

如何为使用Devise rpx conecteable的用户跳过电子邮件确认

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

我正在做一个小型项目,我不知道如何为使用devise_rpx_connectable_sign登录的用户跳过电子邮件确认,每次尝试使用此服务登录时,都会向这些用户发送电子邮件确认。

you can always override this method in User class: 您可以随时在User类中覆盖此方法:

def confirmation_required?
      !confirmed?
end

for example you can check there if rpx_identifier.blank? 例如,您可以检查rpx_identifier.blank?

try this code: 试试这个代码:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM