Commit f91aa409 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Imporved Open ID Connect support in the UI.

parent 74be4647
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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 %}
+5 −11
Original line number Diff line number Diff line
@@ -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>