From cfb8c9f8c2fdc74357ac827ac05124fd2f37fe6d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 23 Jul 2024 14:08:56 -0700 Subject: [PATCH] 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 Reviewed-by: Joseph Nuthalapati --- plinth/modules/miniflux/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/miniflux/views.py b/plinth/modules/miniflux/views.py index 011470632..68d1160d1 100644 --- a/plinth/modules/miniflux/views.py +++ b/plinth/modules/miniflux/views.py @@ -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: