MOBILE-4616 login: Trim username and email on reset password WS call

main
Pau Ferrer Ocaña 2024-10-17 13:47:37 +02:00
parent ce87157622
commit ac719891d9
1 changed files with 2 additions and 2 deletions

View File

@ -860,11 +860,11 @@ export class CoreLoginHelperProvider {
const params: Record<string, string> = {};
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 });