Fakultas Ilmu Komputer UI

Commit f56170c5 authored by Dwi Nanda Susanto's avatar Dwi Nanda Susanto
Browse files

done FT

parent b91c2073
from django.conf.urls import url
from accounts import views
from django.contrib.auth.views import logout
urlpatterns = [
url(r'^send_email$', views.send_login_email, name='send_login_email'),
url(r'^send_login_email$', views.send_login_email, name='send_login_email'),
url(r'^login$', views.login, name='login'),
url(r'^logout$', views.logout, name='logout'),
\ No newline at end of file
url(r'^logout$', logout, {'next_page': '/'}, name='logout'),
......@@ -15,7 +15,7 @@
<a class="navbar-brand" href="/">Superlists</a> {% if user.email %}
<ul class="nav navbar-nav navbar-right">
<li class="navbar-text">Logged in as {{ user.email }}</li>
<li><a href="#">Log out</a></li>
<li><a href="{% url 'logout' %}">Log out</a></li>
{% else %}
<form class="navbar-form navbar-right" method="POST" action="{% url 'send_login_email' %}">
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