diff --git a/canaille/account.py b/canaille/account.py index 4731fc52..2366a553 100644 --- a/canaille/account.py +++ b/canaille/account.py @@ -218,6 +218,7 @@ def profile_edition(user, username): return profile_delete(user, username) if request.form.get("action") == "password-initialization-mail": + user = User.get(username) or abort(404) if send_password_initialization_mail(user): flash( _(