Merge pull request #885 from simple-login/ac-fix-unauthorized-email

Do not show an error if we receive an unsubscribe from a different address
This commit is contained in:
Son Nguyen Kim 2022-04-11 14:45:40 +02:00 committed by GitHub
commit 9d6ba0a9b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2083,7 +2083,7 @@ def handle_unsubscribe_user(user_id: int, mail_from: str) -> str:
return status.E510 return status.E510
if mail_from != user.email: if mail_from != user.email:
LOG.e("Unauthorized mail_from %s %s", user, mail_from) LOG.w("Unauthorized mail_from %s %s", user, mail_from)
return status.E511 return status.E511
user.notification = False user.notification = False