Bug 5837 A limit of 20 chars for the administrator password has been implemented in the current, new workspace interface and a message clarifying the limit too. Also in the web service create user method, a new response has been added in order to prevent the creation of users with passwords above the 20 characters.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2011-02-03 18:12:43 +00:00
parent 42f4beb2f7
commit f0f129e135
2 changed files with 8 additions and 3 deletions

View File

@@ -814,6 +814,11 @@ class wsBase
return $result;
}
if(strlen($password)>20)
{ $result = new wsCreateUserResponse (28, "Password surprases the maximun length allowed", '');
return $result;
}
global $RBAC;
$RBAC->initRBAC();