mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(auth.auth_required): remove unused keyword arguments
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
112837e0e9
commit
c09784d58f
1 changed files with 1 additions and 3 deletions
|
@ -120,9 +120,7 @@ class BasicAuthBackend(AuthenticationBackend):
|
|||
return (AuthCredentials(["authenticated"]), user)
|
||||
|
||||
|
||||
def auth_required(is_required: bool = True,
|
||||
template: tuple = None,
|
||||
status_code: HTTPStatus = HTTPStatus.UNAUTHORIZED):
|
||||
def auth_required(is_required: bool = True):
|
||||
""" Authentication route decorator.
|
||||
|
||||
:param is_required: A boolean indicating whether the function requires auth
|
||||
|
|
Loading…
Add table
Reference in a new issue