This commit is contained in:
Khanh Ngo 2018-04-08 09:09:08 +07:00
parent fc4e9dc9a0
commit 5354d27f88
2 changed files with 3 additions and 2 deletions

View File

@ -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">

View File

@ -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)