Skip to content

Commit

Permalink
Add confirmation step for logout
Browse files Browse the repository at this point in the history
  • Loading branch information
ababic committed Jun 6, 2022
1 parent 828b5d8 commit a9a5b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etna/auth0/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.contrib.auth import login as auth_login
from django.contrib.auth import logout as auth_logout
from django.http import HttpResponseRedirect
from django.shortcuts import redirect
from django.shortcuts import redirect, render
from django.urls import reverse
from django.utils import timezone

Expand Down Expand Up @@ -108,6 +108,8 @@ def authorize(request):


def logout(request):
if request.method != "POST":
return render(request, "account/logout.html")
auth_logout(request)
redirect_to = "/"
if settings.TERMINATE_SSO_SESSION_ON_LOGOUT:
Expand Down

0 comments on commit a9a5b8f

Please sign in to comment.