Skip to content

Commit

Permalink
Fix the name of the two factor parameter - it should be and not (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
kszys authored Sep 27, 2024
1 parent b474ed0 commit e123754
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e123754

Please sign in to comment.