Module: Clearance::PasswordStrategies::BCryptMigrationFromSHA1 Deprecated
- Defined in:
- lib/clearance/password_strategies/bcrypt_migration_from_sha1.rb
Overview
Deprecated.
Use BCrypt or clearance-deprecated_password_strategies
gem
Constant Summary collapse
- DEPRECATION_MESSAGE =
"[DEPRECATION] The BCryptMigrationFromSha1 " \ "password strategy has been deprecated and will be removed from " \ "Clearance 2.0. BCrypt is the only officially supported strategy, " \ "though you are free to provide your own. To continue using this " \ "strategy, add clearance-deprecated_password_strategies to your " \ "Gemfile."
Instance Method Summary collapse
-
#authenticated?(password) ⇒ Boolean
deprecated
Deprecated.
Use BCrypt or
clearance-deprecated_password_strategies
gem -
#password=(new_password) ⇒ Object
deprecated
Deprecated.
Use BCrypt or
clearance-deprecated_password_strategies
gem
Instance Method Details
#authenticated?(password) ⇒ Boolean
Deprecated.
Use Clearance::PasswordStrategies::BCrypt or clearance-deprecated_password_strategies
gem
36 37 38 39 |
# File 'lib/clearance/password_strategies/bcrypt_migration_from_sha1.rb', line 36 def authenticated?(password) warn "#{Kernel.caller.first}: #{DEPRECATION_MESSAGE}" authenticated_with_sha1?(password) || authenticated_with_bcrypt?(password) end |
#password=(new_password) ⇒ Object
Deprecated.
Use Clearance::PasswordStrategies::BCrypt or clearance-deprecated_password_strategies
gem
43 44 45 46 47 |
# File 'lib/clearance/password_strategies/bcrypt_migration_from_sha1.rb', line 43 def password=(new_password) warn "#{Kernel.caller.first}: #{DEPRECATION_MESSAGE}" @password = new_password BCryptUser.new(self).password = new_password end |