mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +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']
|
||||
|
||||
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user