Skip to content
Snippets Groups Projects
Commit f91aa409 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Imporved Open ID Connect support in the UI.

parent 74be4647
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,17 @@
<br />
<input type='submit' style="width:110px" class="btn btn-lg btn-success btn-block" value='Log in' />
<div style="margin-top:25px; margin-bottom:15px">
<font color="#a9a9a9"> — OR —</font>
</div>
{% if OPENID_ENABLED %}
<a href="{% url 'oidc_authentication_init' %}">Login with OpenID Connect &nbsp;</a>
{% endif %}
<br /><br />
{% if data.error %}
<br/>
<div class='centerbox-error'>
......@@ -36,6 +47,7 @@
</p>
</form>
</div>
{% if not data.success %}
......
......@@ -51,22 +51,16 @@
</center>
</li>
<center>
<div style="padding:10px">
<!-- <a href="/register" class="menulink">Register</a> <b>|</b> -->
{% if OPENID_ENABLED %}
<div style="margin-top:15px;margin-bottom:10px"><font color="#a9a9a9"> — OR —</font></div>
<li style="padding-left:0; text-indent: 0"> <a href="{% url 'oidc_authentication_init' %}" style="padding-left:0; text-indent: 0">Login with OpenID Connect</a></li>
{% endif %}
<div style="padding:10px;">
<font color="gray">Forgot password? Just leave it empty to get a login link by email.</font>
</div>
</center>
{% endif %}
{% if OPENID_ENABLED %}
<li>
{% if not user.is_authenticated %}
<a href="{% url 'oidc_authentication_init' %}">Login with OpenID Conn. &nbsp;</a>
{% endif %}
</li>
{% endif %}
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment