PMCORE-1996 Spaces as password is validate but the user can not login again

This commit is contained in:
Roly Gutierrez
2022-02-09 16:29:22 -04:00
parent 86f83d697b
commit 730c12fe85
5 changed files with 18 additions and 1 deletions

View File

@@ -108,6 +108,11 @@ var verifyPassword = function() {
return;
}
}
//Spaces not supported at the end of passwords
if (oPassword1.value.slice(-1) === ' ') {
alert('@G::LoadTranslation(ID_PPP_SPACES_NOT_SUPPORTED_AT_THE_END_OF_PASSWORD)');
return;
}
oPassword1.form.submit();
};