Commit c46ebf2d authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Exit early if no auth cookie found

parent c2e89ab3
......@@ -76,7 +76,13 @@
<!-- the following views require refactor -->
<script src="{{ SYNNEFO_JS_URL }}synnefo.js"></script>
<script>
tmp_auth_client = new synnefo.auth.AstakosClient({
cookie_name: '{{ auth_cookie_name }}',
login_url: '{{ login_redirect }}'
});
if (!tmp_auth_client.get_user()) { tmp_auth_client.redirect_to_login(); }
</script>
{{ CLOUDBAR_CODE }}
<script>
......
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