Commit 4aa93275 by Kálmán Viktor

dashboard: don't display SSO if there is no SAML2

parent c7ceae9d
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
{% include "display-form-errors.html" %} {% include "display-form-errors.html" %}
</div> </div>
{% endif %} {% endif %}
<div class="col-sm-6"> <div class="col-sm-{% if saml2 %}6{% else %}12{% endif %}">
<div class="login-form"> <div class="login-form">
<form action="" method="POST"> <form action="" method="POST">
{% csrf_token %} {% csrf_token %}
...@@ -20,14 +20,12 @@ ...@@ -20,14 +20,12 @@
</form> </form>
</div> </div>
</div> </div>
{% if saml2 %}
<div class="col-sm-6"> <div class="col-sm-6">
<h4 style="padding-top: 0; margin-top: 0;">Login with SSO</h4> <h4 style="padding-top: 0; margin-top: 0;">Login with SSO</h4>
{% if saml2 %}
<a href="{% url "saml2_login" %}">Click here!</a> <a href="{% url "saml2_login" %}">Click here!</a>
Please register or sign in to reply
{% else %}
{% trans "SAML2 NOT AVAILABLE" %}
{% endif %}
</div> </div>
{% endif %}
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
......
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 sign in to comment