Fixed a minor problem in the get_logged_in_user function.
This commit is contained in:
parent
0432561b21
commit
0dfdf70c45
@ -120,6 +120,7 @@ class DigestAuth:
|
||||
raise NoLogInException
|
||||
user: t.Optional[t.Any] = self.__get_user(session["user"])
|
||||
if user is None:
|
||||
del session["user"]
|
||||
raise NoLogInException
|
||||
return user
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user