mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
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:
parent
45f1ba7b82
commit
ad9e4938bc
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user