mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
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:
parent
fe39b91bfe
commit
cfb8c9f8c2
@ -76,7 +76,7 @@ class ResetUserPasswordView(SuccessMessageMixin, FormView):
|
|||||||
password = form.cleaned_data['password']
|
password = form.cleaned_data['password']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
privileged.reset_user_password(username, password).strip()
|
privileged.reset_user_password(username, password)
|
||||||
self.success_message = _('Password reset for user: {username}'
|
self.success_message = _('Password reset for user: {username}'
|
||||||
).format(username=username)
|
).format(username=username)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user