Simplified the log out view in the Mia core application.
This commit is contained in:
parent
828e407c03
commit
4266e43388
@ -51,7 +51,7 @@ def logout(request):
|
|||||||
if "next" in request.POST:
|
if "next" in request.POST:
|
||||||
request.session["logout"] = True
|
request.session["logout"] = True
|
||||||
return redirect(request.POST["next"])
|
return redirect(request.POST["next"])
|
||||||
return redirect(reverse("home"))
|
return redirect("home")
|
||||||
|
|
||||||
|
|
||||||
# TODO: To be removed.
|
# TODO: To be removed.
|
||||||
|
Loading…
Reference in New Issue
Block a user