Commit 6de3aebf authored by Ozzie Isaacs's avatar Ozzie Isaacs

Fix for #1998 (Error 500 with configured oauth on user setup page accessed by admins)

parent 1b7e4227
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
{% if registered_oauth.keys()| length > 0 and not new_user %} {% if registered_oauth.keys()| length > 0 and not new_user and profile %}
{% for id, name in registered_oauth.items() %} {% for id, name in registered_oauth.items() %}
<div class="form-group"> <div class="form-group">
<label>{{ name }} {{_('OAuth Settings')}}</label> <label>{{ name }} {{_('OAuth Settings')}}</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment