mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +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
|
||||
Password</a></li>
|
||||
<li><a href="#tabs-authentication" data-toggle="tab">Authentication
|
||||
</a></li>{% endif %}>
|
||||
</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tabs-personal">
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user