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

This commit is contained in:
依瑪貓 2023-01-05 22:42:59 +08:00
parent 4f30756dc5
commit ea31bb9579

View File

@ -381,8 +381,7 @@ class DigestAuth:
raise UnauthorizedException( raise UnauthorizedException(
"Not an HTTP digest authorization") "Not an HTTP digest authorization")
self.__authenticate(request._digest_auth_state) self.__authenticate(request._digest_auth_state)
user = login_manager.user_callback( user = login_manager.user_callback(authorization.username)
authorization.username)
login_user(user) login_user(user)
self.__on_login(user) self.__on_login(user)
return user return user