Changed the 8 charater limit on loginids to only affect LDAP users

This commit is contained in:
jengo 2000-11-13 10:05:45 +00:00
parent 43cc63b07f
commit 8e765f2af7
2 changed files with 10 additions and 4 deletions

View File

@ -27,8 +27,11 @@
if ($submit) {
$totalerrors = 0;
if (strlen($n_loginid) > 8)
$error[$totalerrors++] = lang("The loginid can not be more then 8 characters");
if ($phpgw_info["server"]["auth_type"] == "ldap") {
if (strlen($n_loginid) > 8) {
$error[$totalerrors++] = lang("The loginid can not be more then 8 characters");
}
}
if ($old_loginid != $n_loginid) {
if (account_exsists($n_loginid)) {

View File

@ -45,8 +45,11 @@
if ($submit) {
$totalerrors = 0;
if (strlen($n_loginid) > 8)
$error[$totalerrors++] = lang("The loginid can not be more then 8 characters");
if ($phpgw_info["server"]["auth_type"] == "ldap") {
if (strlen($n_loginid) > 8) {
$error[$totalerrors++] = lang("The loginid can not be more then 8 characters");
}
}
if (! $n_loginid)
$error[$totalerrors++] = lang("You must enter a loginid");