Skip to content

Commit a5cc83c

Browse files
committed
Fixed an issue with login().
- Legacy-Id: 15474
1 parent a966413 commit a5cc83c

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

ietf/ietfauth/views.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -586,23 +586,9 @@ def login(request, extra_context=None):
586586
username = form.data.get('username')
587587
user = User.objects.filter(username=username).first()
588588
#
589-
if user.person and not user.person.consent:
590-
require_consent = user.person.needs_consent()
591589
if user:
592-
if hasattr(user, 'person') and not user.person.consent:
593-
person = user.person
594-
if person.name != person.name_from_draft:
595-
require_consent.append("full name")
596-
if person.ascii != person.name_from_draft:
597-
require_consent.append("ascii name")
598-
if person.biography:
599-
require_consent.append("biography")
600-
if user.communitylist_set.exists():
601-
require_consent.append("draft notification subscription(s)")
602-
for email in person.email_set.all():
603-
if not email.origin.split(':')[0] in ['author', 'role', 'reviewer', 'liaison', 'shepherd', ]:
604-
require_consent.append("email address(es)")
605-
590+
if user.person and not user.person.consent:
591+
require_consent = user.person.needs_consent()
606592
try:
607593
identify_hasher(user.password)
608594
except ValueError:

0 commit comments

Comments
 (0)