Gitlab CSE Unil

Commit f2587e86 authored by Julien Furrer's avatar Julien Furrer
Browse files

Auto login if shibsession active

parent 5ae274ba
......@@ -32,5 +32,15 @@
{{ block.super }}
<script src="{% static "js/libs/jquery.min.js" %}"></script>
<script src="{% static "js/libs/bootstrap.min.js" %}"></script>
<script>
if (document.location.search) {
$.get("{% url "shib-display" %}")
.fail(function(){ })
.done(function(){
document.location.assign("{% url "shib-login" %}" + document.location.search);
});
}
</script>
{# <script src="{% static "js/libs/require.min.js" %}" data-main="{% static "js/su_app" %}"></script>#}
{% endblock %}
Supports Markdown
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