Module: SimpleUserAuth::Model::ClassInstanceMethods

Defined in:
lib/simple_user_auth.rb

Instance Method Summary collapse

Instance Method Details

#change_password?Boolean

:nodoc:



70
71
72
# File 'lib/simple_user_auth.rb', line 70

def change_password? #:nodoc:
  !password.blank?
end

#has_password?(submitted_password) ⇒ Boolean

Checks to see if a user has a particular password



75
76
77
# File 'lib/simple_user_auth.rb', line 75

def has_password?()
  encrypted_password == encrypt()
end