|
|
@@ -93,3 +93,10 @@ def user_login(request):
|
|
|
# No context variables to pass to the template system, hence the
|
|
|
# blank dictionary object...
|
|
|
return render(request, 'hackathon/login.html', {})
|
|
|
+
|
|
|
+def user_logout(request):
|
|
|
+ # Since we know the user is logged in, we can now just log them out.
|
|
|
+ logout(request)
|
|
|
+
|
|
|
+ # Take the user back to the homepage.
|
|
|
+ return HttpResponseRedirect('/hackathon/')
|