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 });