File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
piccolo_api/mfa/authenticator Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
class AuthenticatorProvider (MFAProvider ):
10
10
11
11
def __init__ (
12
- self , seed_table : t .Type [AuthenticatorSecret ] = AuthenticatorSecret
12
+ self , secret_table : t .Type [AuthenticatorSecret ] = AuthenticatorSecret
13
13
):
14
14
"""
15
15
:param seed_table:
@@ -18,13 +18,13 @@ def __init__(
18
18
certain functionality.
19
19
20
20
"""
21
- self .seed_table = seed_table
21
+ self .secret_table = secret_table
22
22
23
23
async def authenticate_user (self , user : BaseUser , code : str ) -> bool :
24
- return await self .seed_table .authenticate (user_id = user .id , code = code )
24
+ return await self .secret_table .authenticate (user_id = user .id , code = code )
25
25
26
26
async def is_user_enrolled (self , user : BaseUser ) -> bool :
27
- return await self .seed_table .is_user_enrolled (user_id = user .id )
27
+ return await self .secret_table .is_user_enrolled (user_id = user .id )
28
28
29
29
async def send_code (self , user : BaseUser ):
30
30
"""
You can’t perform that action at this time.
0 commit comments