Remove email confirmation field in signup form

This commit is contained in:
Milan Cvetkovic 2023-12-12 09:47:54 +00:00 committed by Tom Hughes
parent 1276fb944a
commit f8a606869e
7 changed files with 14 additions and 42 deletions

View 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? },