]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Extract 3rd party login buttons from login screen
[rails.git] / app / models / user.rb
index 45ecbcc1b1360476b549285d51171f286c57f148..192f52ac4e74ebd440d073d9b8676b0799699c90 100644 (file)
@@ -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? },