mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
Created logout view
This commit is contained in:
parent
be2d20ff73
commit
14ba48a728
@ -109,3 +109,9 @@ def login_view(request):
|
||||
"form": form,
|
||||
}
|
||||
return render(request, "login.html", context)
|
||||
|
||||
|
||||
class LogoutView(View):
|
||||
def get(self, request):
|
||||
logout(request)
|
||||
return redirect("login")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user