mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
Remove section and config parameter from Authenticator
This commit is contained in:
parent
d905e95dbb
commit
0096a0c077
5 changed files with 9 additions and 18 deletions
|
|
@ -1,19 +1,16 @@
|
|||
from typing import Tuple
|
||||
|
||||
from ..config import Config
|
||||
from ..logging import log
|
||||
from ..utils import ainput
|
||||
from .authenticator import Authenticator, AuthError, AuthSection
|
||||
from .authenticator import Authenticator, AuthError
|
||||
|
||||
|
||||
class TfaAuthenticator(Authenticator):
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
section: AuthSection,
|
||||
config: Config,
|
||||
) -> None:
|
||||
super().__init__(name, section, config)
|
||||
super().__init__(name)
|
||||
|
||||
async def username(self) -> str:
|
||||
raise AuthError("TFA authenticator does not support usernames")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue