Module: SimpleUserAuth::Model::ClassInstanceMethods

Defined in:
lib/simple_user_auth.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) change_password?

:nodoc:



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

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

- (Boolean) has_password?(submitted_password)

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