forked from External/greenlight
fix gl accounts unable to update settings
This commit is contained in:
@ -14,7 +14,7 @@ class User < ApplicationRecord
|
||||
uniqueness: { case_sensitive: false },
|
||||
format: { with: /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i }
|
||||
|
||||
validates :password, length: { minimum: 6 }, confirmation: true, if: :greenlight_account?
|
||||
validates :password, length: { minimum: 6 }, confirmation: true, if: :greenlight_account?, on: :create
|
||||
|
||||
# We don't want to require password validations on all accounts.
|
||||
has_secure_password(validations: false)
|
||||
|
Reference in New Issue
Block a user