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

Fix the name of the two factor parameter #923

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/chapter-13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ The follow can be specified on Auth instantiation:
two_factor_required
^^^^^^^^^^^^^^^^^^^

When you pass a method name to the two_factor_filter parameter you are telling py4web to call that method to determine whether or not this login should
When you pass a method name to the ``two_factor_required`` parameter you are telling py4web to call that method to determine whether or not this login should
be use or bypass two factor authentication. If your method returns True, then this login requires two factor. If it returns False,
two factor authentication is bypassed for this login.

Sample two_factor_filter method
Sample ``two_factor_required`` method

This example shows how to allow users that are on a specific network.

Expand Down
Loading