mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-03-01 03:31:32 +00:00
Fix #234
This commit is contained in:
parent
fc4e9dc9a0
commit
5354d27f88
@ -32,7 +32,8 @@
|
|||||||
{% if not external_account %}<li><a href="#tabs-password" data-toggle="tab">Change
|
{% if not external_account %}<li><a href="#tabs-password" data-toggle="tab">Change
|
||||||
Password</a></li>
|
Password</a></li>
|
||||||
<li><a href="#tabs-authentication" data-toggle="tab">Authentication
|
<li><a href="#tabs-authentication" data-toggle="tab">Authentication
|
||||||
</a></li>{% endif %}>
|
</a></li>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="tabs-personal">
|
<div class="tab-pane active" id="tabs-personal">
|
||||||
|
@ -1150,7 +1150,7 @@ def admin_settings_edit(setting):
|
|||||||
@login_required
|
@login_required
|
||||||
def user_profile():
|
def user_profile():
|
||||||
external_account = False
|
external_account = False
|
||||||
if session.has_key('external_auth'):
|
if 'external_auth' in session:
|
||||||
external_account = session['external_auth']
|
external_account = session['external_auth']
|
||||||
if request.method == 'GET' or external_account:
|
if request.method == 'GET' or external_account:
|
||||||
return render_template('user_profile.html', external_account=external_account)
|
return render_template('user_profile.html', external_account=external_account)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user