app/forms/decidim/system/admin_form.rb in decidim-system-0.26.8 vs app/forms/decidim/system/admin_form.rb in decidim-system-0.26.9
- old
+ new
@@ -10,10 +10,10 @@
attribute :email, String
attribute :password, String
attribute :password_confirmation, String
validates :email, presence: true
- validates :password, presence: true, unless: :admin_exists?
+ validates :password, confirmation: true, presence: true, unless: :admin_exists?
validates :password_confirmation, presence: true, unless: :admin_exists?
validates :password, password: { email: :email }
validate :email, :email_uniqueness