earlier check for duplicate user names

This commit is contained in:
Roland Gruber 2014-02-06 17:29:58 +00:00
parent 577be7d5a5
commit 53d611e9e2
1 changed files with 5 additions and 0 deletions

View File

@ -2855,6 +2855,11 @@ class posixAccount extends baseModule implements passwordService {
}
$format = str_replace(array_keys($this->umlautReplacements), array_values($this->umlautReplacements), strtolower($format));
$format = str_replace(array(' ', '_', '-'), array('', '', ''), $format);
if (!empty($format) && $this->userNameExists($format)) {
while ($this->userNameExists($format)) {
$format = $this->getNextUserName($format);
}
}
return $format;
}