X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d56322a0ddbf16e710aae49fb2d0494f3986995e..31f4ab5c466bcbafb940db5668627f9922beaaba:/app/models/user.rb?ds=inline 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? },