From a5cc83ccb4821f05209af18fec5d5d47c7892f4c Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 19 Sep 2018 15:22:44 +0000 Subject: [PATCH] Fixed an issue with login(). - Legacy-Id: 15474 --- ietf/ietfauth/views.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/ietf/ietfauth/views.py b/ietf/ietfauth/views.py index 203810e29..4d44f8d64 100644 --- a/ietf/ietfauth/views.py +++ b/ietf/ietfauth/views.py @@ -586,23 +586,9 @@ def login(request, extra_context=None): username = form.data.get('username') user = User.objects.filter(username=username).first() # - if user.person and not user.person.consent: - require_consent = user.person.needs_consent() if user: - if hasattr(user, 'person') and not user.person.consent: - person = user.person - if person.name != person.name_from_draft: - require_consent.append("full name") - if person.ascii != person.name_from_draft: - require_consent.append("ascii name") - if person.biography: - require_consent.append("biography") - if user.communitylist_set.exists(): - require_consent.append("draft notification subscription(s)") - for email in person.email_set.all(): - if not email.origin.split(':')[0] in ['author', 'role', 'reviewer', 'liaison', 'shepherd', ]: - require_consent.append("email address(es)") - + if user.person and not user.person.consent: + require_consent = user.person.needs_consent() try: identify_hasher(user.password) except ValueError: