Namespace
- MODULE ActiveModel::SecurePassword::ClassMethods
- CLASS ActiveModel::SecurePassword::Argon2Password
- CLASS ActiveModel::SecurePassword::BCryptPassword
- CLASS ActiveModel::SecurePassword::InstanceMethodsOnActivation
Methods
Constants
| DEFAULT_RESET_TOKEN_EXPIRES_IN | = | 15.minutes |
Class Public methods
algorithm_registry() Link
Returns the registry of password algorithms
lookup_algorithm(name) Link
Looks up a registered algorithm by name
register_algorithm(name, algorithm_class) Link
Registers a password algorithm for use with has_secure_password
ActiveModel::SecurePassword.register_algorithm :argon2, Argon2Password
The algorithm class will be instantiated when used.