Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link to old readme on the upgrading from 4x to 5x guide #265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This gem must be upgraded **as part of a Rails 7 upgrade**. See [the official Ra
```
1. Add a `legacy_otp_secret` method to your user model e.g. `User`.
* This method is used by the gem to find and decode the OTP secret from the legacy database columns.
* The implementation shown below works if you set up devise-two-factor with the settings suggested in the [README](./README.md).
* The implementation shown below works if you set up devise-two-factor with the settings suggested in the [OLD README](https://github.com/devise-two-factor/devise-two-factor/blob/8d74f5ee45594bf00e60d5d49eb6fcde82c2d2ba/README.md).
* If you have customised the encryption scheme used to store the OTP secret then you will need to update this method to match.
* If you are unsure, you should try the method below as is, and if you can still sign in users with OTP enabled then all is well.
```ruby
Expand Down