Skip to content

Commit 8adae61

Browse files
committed
Improved a check for authenticated user.
- Legacy-Id: 16521
1 parent b324424 commit 8adae61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/ietfauth/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def login(request, extra_context=None):
623623
"to set a new password for your account.",
624624
}
625625
response = LoginView.as_view(extra_context=extra_context)(request)
626-
if isinstance(response, HttpResponseRedirect) and user.is_authenticated:
626+
if isinstance(response, HttpResponseRedirect) and user and user.is_authenticated:
627627
try:
628628
user.person
629629
except Person.DoesNotExist:

0 commit comments

Comments
 (0)