X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d56322a0ddbf16e710aae49fb2d0494f3986995e..ad4ab4603b27f2e89e4bb4a709bc04a6685ba67b:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 45ecbcc1b..192f52ac4 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -100,7 +100,7 @@ class User < ApplicationRecord :whitespace => { :leading => false, :trailing => false }, :width => { :minimum => 3 } validate :display_name_cannot_be_user_id_with_other_id, :if => proc { |u| u.display_name_changed? } - validates :email, :presence => true, :confirmation => true, :characters => true + validates :email, :presence => true, :characters => true validates :email, :if => proc { |u| u.email_changed? }, :uniqueness => { :case_sensitive => false } validates :email, :if => proc { |u| u.email_changed? },