Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/features/login/services/login-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,11 +823,11 @@ export class CoreLoginHelperProvider {
const params: Record<string, string> = {};

if (username) {
params.username = username.trim();
params.username = username.trim().toLowerCase();
}

if (email) {
params.email = email.trim();
params.email = email.trim().toLowerCase();
}

return CoreWS.callAjax('core_auth_request_password_reset', params, { siteUrl });
Expand Down Expand Up @@ -1037,7 +1037,7 @@ export class CoreLoginHelperProvider {

// Call the WS to resend the confirmation email.
const modal = await CoreLoadings.show('core.sending', true);
const data = { username, password };
const data = { username: username?.toLowerCase(), password };
const preSets = { siteUrl };

try {
Expand Down