You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/11/06 15:39:11 UTC
[airavata-django-portal] 01/02: AIRAVATA-3019 Fix reference before
assignment bug
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit 59e5b14c8176df1830191007519def15fb27cfcd
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Nov 5 18:31:50 2019 -0500
AIRAVATA-3019 Fix reference before assignment bug
---
django_airavata/apps/auth/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django_airavata/apps/auth/views.py b/django_airavata/apps/auth/views.py
index 8b82e11..47fddb9 100644
--- a/django_airavata/apps/auth/views.py
+++ b/django_airavata/apps/auth/views.py
@@ -114,9 +114,9 @@ def start_logout(request):
def callback(request):
try:
+ login_desktop = request.GET.get('login_desktop', "false") == "true"
user = authenticate(request=request)
login(request, user)
- login_desktop = request.GET.get('login_desktop', "false") == "true"
if login_desktop:
return _create_login_desktop_success_response(request)
next_url = request.GET.get('next', settings.LOGIN_REDIRECT_URL)