1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-24 19:26:21 +02:00

Simplified Quick-Add-User success message.

This commit is contained in:
Cameron
2013-10-28 12:56:19 -07:00
parent 047bfeb48e
commit f8987b6cc2
2 changed files with 8 additions and 8 deletions

View File

@@ -1175,19 +1175,19 @@ class users_admin_ui extends e_admin_ui
}
}
$message = str_replace('--NAME--', htmlspecialchars($user_data['user_name'], ENT_QUOTES, CHARSET), USRLAN_174);
// $message = str_replace('--NAME--', htmlspecialchars($user_data['user_name'], ENT_QUOTES, CHARSET), USRLAN_174);
$message = USRLAN_172; // "User account has been created with the following:" ie. keep it simple so it can easily be copied and pasted.
// Always show Login name and password
//if (isset($_POST['generateloginname']))
{
$mes->addSuccess($message)
->addSuccess(USRLAN_173.': <strong>'.htmlspecialchars($user_data['user_loginname'], ENT_QUOTES, CHARSET).'</strong>');
->addSuccess(USRLAN_128.': <strong>'.htmlspecialchars($user_data['user_loginname'], ENT_QUOTES, CHARSET).'</strong>');
}
//if (isset($_POST['generatepassword']))
{
$mes->addSuccess($message)
->addSuccess(USRLAN_172.': <strong>'.htmlspecialchars($savePassword, ENT_QUOTES, CHARSET).'</strong>');
$mes->addSuccess(USRLAN_62.': <strong>'.htmlspecialchars($savePassword, ENT_QUOTES, CHARSET).'</strong>');
}
return;
}