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

@@ -195,6 +195,10 @@ class UsersProperties extends BaseUsersProperties
$changePassword = 1;
}
}
//Spaces not supported at the end of passwords
if (substr($password, -1) === " ") {
$listErrors[] = 'ID_PPP_SPACES_NOT_SUPPORTED_AT_THE_END_OF_PASSWORD';
}
if ($changePassword == 1) {
$listErrors[] = 'ID_PPP_CHANGE_PASSWORD_AFTER_NEXT_LOGIN';