Commit 0672d3c5 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

cas now links to the proper place

parent e9dbaf3d
......@@ -21,7 +21,7 @@ urlpatterns = patterns('',
# login and logout
url(r'^login/$', 'cas.views.login', name='login'),
url(r'login/$', 'cas.views.logout', name='logout'),
url(r'^logout/$', 'cas.views.logout', name='logout'),
# alternate interfaces
url(r'^api/', include('api.urls')),
......@@ -22,10 +22,10 @@
{% if user.is_authenticated %}
<li><a href="/accounts/student/{{ user.username }}">{{ user.username }}</a>
<li><a href="/accounts/logout/">Logout</a>
<li><a href="{% url 'logout' %}">Logout</a>
{% else %}
<li><a href="/accounts/login/">Login</a>
<li><a href="{% url 'login' %}">Login</a>
{% endif %}
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