Skip to content

Commit

Permalink
add before_action to README example;
Browse files Browse the repository at this point in the history
  • Loading branch information
strouptl committed May 25, 2024
1 parent a115f53 commit 8886924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ The install generator adds some options to the end of your Devise config file (`
## Mandatory OTP
Enforcing mandatory OTP requires adding the ensure\_mandatory\_{scope}\_otp! method to the desired controller(s) to ensure that the user is redirected to the Enable Two-Factor Authentication form before proceeding to other parts of the application. This functions the same way as the authenticate\_{scope}! methods, and can be included inline with them in the controllers, e.g.:

authenticate_user!
ensure_mandatory_user_otp!
before_action :authenticate_user!
before_action :ensure_mandatory_user_otp!

## Authors

Expand Down

0 comments on commit 8886924

Please sign in to comment.