mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Remove email from user on unsubscribe
This commit is contained in:
parent
6e3d32a9d5
commit
d654113204
@ -340,6 +340,9 @@ def unsubscribe_manage(sub: EmailSubscription):
|
||||
user = User.query.filter_by(email=sub.email).first()
|
||||
|
||||
if request.method == "POST":
|
||||
if user:
|
||||
user.email = None
|
||||
|
||||
sub.blacklisted = True
|
||||
db.session.commit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user