From e123754b3c490c3347c04fe2f9213b80d82f13c0 Mon Sep 17 00:00:00 2001 From: Krzysztof Socha Date: Fri, 27 Sep 2024 03:53:29 +0200 Subject: [PATCH] Fix the name of the two factor parameter - it should be and not (#923) --- docs/chapter-13.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/chapter-13.rst b/docs/chapter-13.rst index 0bf213ad..67bee9da 100644 --- a/docs/chapter-13.rst +++ b/docs/chapter-13.rst @@ -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.