add 'delete etherpad cookie', optimize the 'checkPadExists' function

This commit is contained in:
2020-09-23 16:47:44 +00:00
parent 99e3034c0d
commit 526bfcd989
6 changed files with 142 additions and 132 deletions

View File

@@ -5,6 +5,7 @@ from django.contrib.auth.models import User
from .authentications import authentication
from .decorators import unauthenticated_user, authenticated_user
from documents.etherpadlib import del_ep_cookie
@unauthenticated_user
@@ -33,4 +34,8 @@ def loginPage(request):
@authenticated_user
def logoutUser(request):
logout(request)
return redirect('home')
response = redirect('home')
response = del_ep_cookie(request, response)
return response