mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
check if user and mailbox email address are lowercase in sanity_check
This commit is contained in:
parent
df47ea1983
commit
987b413e3d
7
cron.py
7
cron.py
@ -283,8 +283,13 @@ def sanity_check():
|
||||
mailbox.nb_email_log(),
|
||||
)
|
||||
|
||||
LOG.d("Disable mailbox and all its aliases")
|
||||
for user in User.filter_by(activated=True).all():
|
||||
if user.email.lower() != user.email:
|
||||
LOG.error("%s does not have lowercase email", user)
|
||||
|
||||
for mailbox in Mailbox.filter_by(verified=True).all():
|
||||
if mailbox.email.lower() != mailbox.email:
|
||||
LOG.error("%s does not have lowercase email", mailbox)
|
||||
|
||||
LOG.d("Finish sanity check")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user