From ac719891d9cab2c5afdd26343c9382ae5aa39704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 17 Oct 2024 13:47:37 +0200 Subject: [PATCH] MOBILE-4616 login: Trim username and email on reset password WS call --- src/core/features/login/services/login-helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/features/login/services/login-helper.ts b/src/core/features/login/services/login-helper.ts index f1d37e681..fcb3abbd2 100644 --- a/src/core/features/login/services/login-helper.ts +++ b/src/core/features/login/services/login-helper.ts @@ -860,11 +860,11 @@ export class CoreLoginHelperProvider { const params: Record = {}; if (username) { - params.username = username; + params.username = username.trim(); } if (email) { - params.email = email; + params.email = email.trim(); } return CoreWS.callAjax('core_auth_request_password_reset', params, { siteUrl });