Skip to content
Snippets Groups Projects
Verified Commit 8150056c authored by nd's avatar nd
Browse files

fixup! set user mail adress to verified if it matches the one in ldap

parent e9599bbb
No related branches found
No related tags found
1 merge request!1set user mail adress to verified if it matches the one in ldap
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
...@@ -49,6 +49,7 @@ class Command(BaseCommand): ...@@ -49,6 +49,7 @@ class Command(BaseCommand):
user_emails = EmailAddress.objects.filter(user=user) user_emails = EmailAddress.objects.filter(user=user)
for mail in user_emails: for mail in user_emails:
if mail.email == user.email: if mail.email == user.email:
logger.warning("update email.verified on user {} for address {} to True".format(user.username, mail.email))
mail.verified = True mail.verified = True
mail.save() mail.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment