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:
commit
9d6ba0a9b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue