aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/change_email_validator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/change_email_validator.rb')
-rw-r--r--app/models/change_email_validator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/change_email_validator.rb b/app/models/change_email_validator.rb
index a796489f7..ff7f2f931 100644
--- a/app/models/change_email_validator.rb
+++ b/app/models/change_email_validator.rb
@@ -25,7 +25,7 @@ class ChangeEmailValidator < ActiveRecord::BaseWithoutTable
end
if !errors[:old_email]
- if self.old_email != self.logged_in_user.email
+ if self.old_email.downcase != self.logged_in_user.email.downcase
errors.add(:old_email, "address isn't the same as the address of the account you are logged in with")
elsif !self.logged_in_user.has_this_password?(self.password)
if !errors[:password]