|
|
|
@ -176,8 +176,8 @@ To add them, generate a migration such as:
|
|
|
|
|
$ rails g migration AddTwoFactorFieldsToUsers direct_otp:string direct_otp_sent_at:datetime totp_timestamp:timestamp |
|
|
|
|
|
|
|
|
|
The `otp_secret_key` is not only required for users who use Google Authentictor, |
|
|
|
|
so unless it has been shared with the user it should be set to `nil`. The |
|
|
|
|
following psudo-code is an example of how this might be done: |
|
|
|
|
so unless it has been shared with the user it should be set to `nil`. The |
|
|
|
|
following pseudo-code is an example of how this might be done: |
|
|
|
|
|
|
|
|
|
```ruby |
|
|
|
|
User.find_each do |user| do |
|
|
|
|