Renamed the digest_login_required() decorator to login_required(), for consistency.

This commit is contained in:
2020-07-30 00:12:13 +08:00
parent a8058209bd
commit a30c937a4b
3 changed files with 24 additions and 24 deletions

View File

@ -57,7 +57,7 @@ class AccountBackend:
return User.objects.filter(login_id=username).first()
def digest_login_required(function=None):
def login_required(function=None):
"""The decorator to check if the user has logged in, and send
HTTP 401 if the user has not logged in.
"""