mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-10-29 00:18:08 +08:00
Fix :param verified in current_user and current_user_token docstring
This commit is contained in:
committed by
François Voron
parent
899ec22c3e
commit
76d7f5a2ec
@ -78,7 +78,7 @@ class Authenticator(Generic[models.UP, models.ID]):
|
||||
Otherwise, an exception is raised. Defaults to `False`.
|
||||
:param active: If `True`, throw `401 Unauthorized` if
|
||||
the authenticated user is inactive. Defaults to `False`.
|
||||
:param verified: If `True`, throw `401 Unauthorized` if
|
||||
:param verified: If `True`, throw `403 Forbidden` if
|
||||
the authenticated user is not verified. Defaults to `False`.
|
||||
:param superuser: If `True`, throw `403 Forbidden` if
|
||||
the authenticated user is not a superuser. Defaults to `False`.
|
||||
@ -124,7 +124,7 @@ class Authenticator(Generic[models.UP, models.ID]):
|
||||
Otherwise, an exception is raised. Defaults to `False`.
|
||||
:param active: If `True`, throw `401 Unauthorized` if
|
||||
the authenticated user is inactive. Defaults to `False`.
|
||||
:param verified: If `True`, throw `401 Unauthorized` if
|
||||
:param verified: If `True`, throw `403 Forbidden` if
|
||||
the authenticated user is not verified. Defaults to `False`.
|
||||
:param superuser: If `True`, throw `403 Forbidden` if
|
||||
the authenticated user is not a superuser. Defaults to `False`.
|
||||
|
||||
Reference in New Issue
Block a user