Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个迷你项目,我不知道如何跳过使用 devise_rpx_connectable_ 登录的用户的电子邮件确认,每次我尝试使用此服务登录时,它都会向这些用户发送电子邮件确认。
您始终可以在 User 类中覆盖此方法:
def confirmation_required? !confirmed? end
例如,您可以在那里检查是否rpx_identifier.blank?
rpx_identifier.blank?
试试这个代码:
def confirmation_required? !confirmed? and rpx_identifier.blank? end