MOBILE-4616 login: Trim username and email on reset password WS call
parent
ce87157622
commit
ac719891d9
|
@ -860,11 +860,11 @@ export class CoreLoginHelperProvider {
|
||||||
const params: Record<string, string> = {};
|
const params: Record<string, string> = {};
|
||||||
|
|
||||||
if (username) {
|
if (username) {
|
||||||
params.username = username;
|
params.username = username.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (email) {
|
if (email) {
|
||||||
params.email = email;
|
params.email = email.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
return CoreWS.callAjax('core_auth_request_password_reset', params, { siteUrl });
|
return CoreWS.callAjax('core_auth_request_password_reset', params, { siteUrl });
|
||||||
|
|
Loading…
Reference in New Issue