Add additional log information

Print out the message returned by create_local_user() when it fails to create a new local user.
This commit is contained in:
Ronan 2023-08-31 16:25:12 +10:00 committed by GitHub
parent 45f1ba7b82
commit ad9e4938bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ def login():
result = user.create_local_user()
if not result['status']:
current_app.logger.warning('Unable to create ' + azure_username)
current_app.logger.warning('Unable to create ' + azure_username + ' Reasoning: ' + result['msg'])
session.pop('azure_token', None)
# note: a redirect to login results in an endless loop, so render the login page instead
return render_template('login.html',