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
1 changed files with 1 additions and 1 deletions

View File

@ -2083,7 +2083,7 @@ def handle_unsubscribe_user(user_id: int, mail_from: str) -> str:
return status.E510
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
user.notification = False