mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-16 03:40:23 +08:00
Move validate_password into UserManager
This commit is contained in:
@ -9,7 +9,7 @@ from fastapi_users.manager import UserManager
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
class BaseAuthentication(Generic[T]):
|
||||
class BaseAuthentication(Generic[T, models.UC, models.UD]):
|
||||
"""
|
||||
Base authentication backend.
|
||||
|
||||
@ -28,7 +28,7 @@ class BaseAuthentication(Generic[T]):
|
||||
self.logout = logout
|
||||
|
||||
async def __call__(
|
||||
self, credentials: Optional[T], user_manager: UserManager[models.UD]
|
||||
self, credentials: Optional[T], user_manager: UserManager[models.UC, models.UD]
|
||||
) -> Optional[models.UD]:
|
||||
raise NotImplementedError()
|
||||
|
||||
|
Reference in New Issue
Block a user