mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
changed email_was !='' to email_was.present?
This commit is contained in:
committed by
Lucas Mazza
parent
f25562fd4b
commit
f63be5039a
@@ -254,7 +254,7 @@ module Devise
|
||||
end
|
||||
|
||||
def postpone_email_change?
|
||||
postpone = self.class.reconfirmable && email_changed? && email_was != "" && !@bypass_confirmation_postpone && self.email.present?
|
||||
postpone = self.class.reconfirmable && email_changed? && email_was.present? && !@bypass_confirmation_postpone && self.email.present?
|
||||
@bypass_confirmation_postpone = false
|
||||
postpone
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user