From b08d6a3f9729249e0b5f362599ab5d25c369f04f Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 23 May 2015 19:47:54 +0200 Subject: [PATCH] typo --- cas_server/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_server/views.py b/cas_server/views.py index bb7a426..5572b1b 100644 --- a/cas_server/views.py +++ b/cas_server/views.py @@ -58,7 +58,7 @@ def login(request): form = forms.UserCredential(initial={'service':service,'method':method,'warn':request.session.get("warn")}) # if authenticated and successfully renewed authentication if needed - if request.session.get("authenticated") request.session.get("username") and (not renew or renewed): + if request.session.get("authenticated") and request.session.get("username") and (not renew or renewed): try: user = models.User.objects.get(username=request.session["username"]) except models.User.DoesNotExist: