some type fixes
This commit is contained in:
parent
de6ed03ad8
commit
f95d542b2e
|
@ -5,21 +5,23 @@ from hmac import compare_digest as compare_hash
|
||||||
import crypt
|
import crypt
|
||||||
from .model import User
|
from .model import User
|
||||||
import logging
|
import logging
|
||||||
|
from abc import ABC, abstractclassmethod, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AuthProvider:
|
class AuthProvider(ABC):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_name(csl):
|
def get_name(cls):
|
||||||
return csl.__name__
|
return cls.__name__
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@abstractmethod
|
||||||
def get_form() -> FlaskForm:
|
def get_form() -> FlaskForm:
|
||||||
return
|
...
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def check_auth(user: User, form) -> bool:
|
def check_auth(user: User, form) -> bool:
|
||||||
|
|
Loading…
Reference in a new issue