Revised the coding style in the init_app method of the DigestAuth class.

This commit is contained in:
imacat committed 2023-01-05 22:42:59 +08:00
1 parent 4f30756dc5
commit ea31bb9579
1 file changed
+1 -2
+1 -2
View File
@@ -381,8 +381,7 @@ class DigestAuth:
raise UnauthorizedException(
"Not an HTTP digest authorization")
self.__authenticate(request._digest_auth_state)
user = login_manager.user_callback(
authorization.username)
user = login_manager.user_callback(authorization.username)
login_user(user)
self.__on_login(user)
return user