miniflux: Remove a spurious error message after resetting password

Tests:

- Reset the password of an account successfully. No error is shown.

- Reset the password of a non-existent account. Error is shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa authored and Joseph Nuthalapati committed 2024-07-30 00:13:08 +05:30
1 parent fe39b91bfe
commit cfb8c9f8c2
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ class ResetUserPasswordView(SuccessMessageMixin, FormView):
password = form.cleaned_data['password']
try:
privileged.reset_user_password(username, password).strip()
privileged.reset_user_password(username, password)
self.success_message = _('Password reset for user: {username}'
).format(username=username)
except Exception as error: