Commit bf4d5a84 authored by Mario Chirinos's avatar Mario Chirinos

logout

parent 5434a7cb
...@@ -61,11 +61,6 @@ ...@@ -61,11 +61,6 @@
<li class="divider"></li> <li class="divider"></li>
<li> <li>
<a href="{% url 'logout-view'%}?next={{request.path}}"><i class="fa fa-sign-out fa-fw"></i> Logout</a> <a href="{% url 'logout-view'%}?next={{request.path}}"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit">Log out</button>
</form>
</li> </li>
</ul> </ul>
<!-- /.dropdown-user --> <!-- /.dropdown-user -->
......
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
</div> </div>
<div class="pull-right"> <div class="pull-right">
<a href="{% url 'logout'%}?next={{request.path}}" class="btn btn-default btn-flat">Sign out</a> <a href="{% url 'logout'%}?next={{request.path}}" class="btn btn-default btn-flat">Sign out</a>
<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit">Log out</button>
</form>
</div> </div>
</li> </li>
</ul> </ul>
......
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