Fix :param verified in current_user and current_user_token docstring

This commit is contained in:
Tommaso Comparin
2025-10-24 10:19:05 +02:00
committed by François Voron
parent 899ec22c3e
commit 76d7f5a2ec

View File

@ -78,7 +78,7 @@ class Authenticator(Generic[models.UP, models.ID]):
Otherwise, an exception is raised. Defaults to `False`. Otherwise, an exception is raised. Defaults to `False`.
:param active: If `True`, throw `401 Unauthorized` if :param active: If `True`, throw `401 Unauthorized` if
the authenticated user is inactive. Defaults to `False`. 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`. the authenticated user is not verified. Defaults to `False`.
:param superuser: If `True`, throw `403 Forbidden` if :param superuser: If `True`, throw `403 Forbidden` if
the authenticated user is not a superuser. Defaults to `False`. 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`. Otherwise, an exception is raised. Defaults to `False`.
:param active: If `True`, throw `401 Unauthorized` if :param active: If `True`, throw `401 Unauthorized` if
the authenticated user is inactive. Defaults to `False`. 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`. the authenticated user is not verified. Defaults to `False`.
:param superuser: If `True`, throw `403 Forbidden` if :param superuser: If `True`, throw `403 Forbidden` if
the authenticated user is not a superuser. Defaults to `False`. the authenticated user is not a superuser. Defaults to `False`.