diff options
| author | Magnus Hagander | 2020-03-31 21:40:23 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2020-04-03 17:05:26 +0000 |
| commit | ccb1282531e94b7895be0b170bb49120a4843437 (patch) | |
| tree | c50465c461fcfbdb199f4def7e40850adb3c2023 /tools | |
| parent | 6d62619addb260a809d0b65e1bdb36e4bbb95d52 (diff) | |
Update authentication to be django 2 compatible
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/communityauth/sample/django/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/communityauth/sample/django/auth.py b/tools/communityauth/sample/django/auth.py index 4ae553b2..87ffb0b2 100644 --- a/tools/communityauth/sample/django/auth.py +++ b/tools/communityauth/sample/django/auth.py @@ -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) |
