Sha256: c83d5c4ec5c9d05b82f81b9d0bd96dbbc44fe55e40bcb9d98619b4d93d732524
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
module Clearance # Control how users are authenticated and how passwords are stored. # # The default password strategy is {Clearance::PasswordStrategies::BCrypt}, # but this can be overridden in {Clearance::Configuration}. # # You can supply your own password strategy by implementing a module that # responds to the proper interface methods. Once this module is configured as # your password strategy, Clearance will mix it into your Clearance User # class. Thus, your module can access any methods or attributes on User. # # Password strategies need to respond to `authenticated?(password)` and # `password=(new_password)`. For an example of how to implement these methods, # see {Clearance::PasswordStrategies::BCrypt}. module PasswordStrategies autoload :BCrypt, "clearance/password_strategies/bcrypt" autoload :Argon2, "clearance/password_strategies/argon2" autoload :BCryptMigrationFromSHA1, "clearance/password_strategies/bcrypt_migration_from_sha1" autoload :Blowfish, "clearance/password_strategies/blowfish" autoload :SHA1, "clearance/password_strategies/sha1" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clearance-2.2.1 | lib/clearance/password_strategies.rb |
clearance-2.2.0 | lib/clearance/password_strategies.rb |