mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-05 13:44:04 +00:00
Fix #234
This commit is contained in:
@ -1150,7 +1150,7 @@ def admin_settings_edit(setting):
|
||||
@login_required
|
||||
def user_profile():
|
||||
external_account = False
|
||||
if session.has_key('external_auth'):
|
||||
if 'external_auth' in session:
|
||||
external_account = session['external_auth']
|
||||
if request.method == 'GET' or external_account:
|
||||
return render_template('user_profile.html', external_account=external_account)
|
||||
|
Reference in New Issue
Block a user