1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00

Fixes changemail POST

This commit is contained in:
Óscar García Amor 2024-12-02 10:15:05 +01:00
parent bd53ac05f6
commit 09920bc706
No known key found for this signature in database
GPG Key ID: E18B2370D3D566EE

View File

@ -182,6 +182,7 @@ def change_mail_post(uid, user):
mail = request.form.get("mail", "") mail = request.form.get("mail", "")
# No validation, lol. # No validation, lol.
user.mail = mail user.mail = mail
user.save()
return redirect(url_for("frontend.user_profile", uid=uid)) return redirect(url_for("frontend.user_profile", uid=uid))