mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue