We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b324424 commit 8adae61Copy full SHA for 8adae61
1 file changed
ietf/ietfauth/views.py
@@ -623,7 +623,7 @@ def login(request, extra_context=None):
623
"to set a new password for your account.",
624
}
625
response = LoginView.as_view(extra_context=extra_context)(request)
626
- if isinstance(response, HttpResponseRedirect) and user.is_authenticated:
+ if isinstance(response, HttpResponseRedirect) and user and user.is_authenticated:
627
try:
628
user.person
629
except Person.DoesNotExist:
0 commit comments