Module: Clearance::PasswordStrategies::SHA1
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/clearance/password_strategies/sha1.rb
Instance Method Summary collapse
-
#authenticated?(password) ⇒ true, false
Am I authenticated with given password?.
Instance Method Details
#authenticated?(password) ⇒ true, false
Am I authenticated with given password?
14 15 16 |
# File 'lib/clearance/password_strategies/sha1.rb', line 14 def authenticated?(password) encrypted_password == encrypt(password) end |