Module: UserAuthenticationConcern::ReplacementMethods

Defined in:
app/models/concerns/user_authentication_concern.rb

Instance Method Summary collapse

Instance Method Details

#email_required?Boolean

Overrides Devise::Models::Validatable This disables the devise email validation for system user.


28
29
30
# File 'app/models/concerns/user_authentication_concern.rb', line 28

def email_required?
  built_in? ? false : super
end

#password_required?Boolean

Overrides Devise::Models::Validatable This disables the devise password validation for system user.


34
35
36
# File 'app/models/concerns/user_authentication_concern.rb', line 34

def password_required?
  built_in? ? false : super
end