Skip to content
Snippets Groups Projects

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

Merged nd requested to merge mail-verify into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -49,6 +49,7 @@ class Command(BaseCommand):
user_emails = EmailAddress.objects.filter(user=user)
for mail in user_emails:
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.save()
Loading