mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Should check email present
This commit is contained in:
parent
274f8f2f87
commit
7d10019d2a
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ module Devise
|
||||||
end
|
end
|
||||||
|
|
||||||
def reconfirmation_required?
|
def reconfirmation_required?
|
||||||
self.class.reconfirmable && @reconfirmation_required && (self.email || self.unconfirmed_email)
|
self.class.reconfirmable && @reconfirmation_required && (self.email.present? || self.unconfirmed_email.present?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_confirmation_notification?
|
def send_confirmation_notification?
|
||||||
|
|
Loading…
Add table
Reference in a new issue