mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-01 15:54:53 +00:00
Update authentication to be django 2 compatible
This commit is contained in:
@ -72,7 +72,7 @@ def login(request):
|
||||
# Handle logout requests by logging out of this site and then
|
||||
# redirecting to log out from the main site as well.
|
||||
def logout(request):
|
||||
if request.user.is_authenticated():
|
||||
if request.user.is_authenticated:
|
||||
django_logout(request)
|
||||
return HttpResponseRedirect("%slogout/" % settings.PGAUTH_REDIRECT)
|
||||
|
||||
|
Reference in New Issue
Block a user