PMCORE-4046 User Enumeration

This commit is contained in:
Roly Gutierrez
2023-02-02 11:57:39 -04:00
parent a7cbcd64bf
commit 648a282fa5
3 changed files with 8 additions and 2 deletions

View File

@@ -469,8 +469,7 @@ try {
if (is_array($row) || $_POST['NEW_USERNAME'] == '') {
$color = 'red';
$img = '/images/delete.png';
$dataVar = ['USER_ID' => $_POST['NEW_USERNAME']];
$text = G::LoadTranslation('ID_USERNAME_ALREADY_EXISTS', $dataVar);
$text = G::LoadTranslation('ID_INVALID_USERNAME');
$text = ($_POST['NEW_USERNAME'] == '') ? G::LoadTranslation('ID_MSG_ERROR_USR_USERNAME') : $text;
$response['exists'] = true;
} else {