|
|
@ -45,8 +45,8 @@ To manually enable two factor authentication for the User model, you should add |
|
|
|
Two default parameters |
|
|
|
Two default parameters |
|
|
|
|
|
|
|
|
|
|
|
```ruby |
|
|
|
```ruby |
|
|
|
config.login_code_random_pattern = /\w+/ |
|
|
|
config.devise.login_code_random_pattern = /\w+/ |
|
|
|
config.max_login_attempts = 3 |
|
|
|
config.devise.max_login_attempts = 3 |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
Possible random patterns |
|
|
|
Possible random patterns |
|
|
|