filter " ", -, _ in suggested user names

This commit is contained in:
Roland Gruber 2013-07-21 10:39:46 +00:00
parent b41487794d
commit bf77abb0c1
1 changed files with 3 additions and 1 deletions

View File

@ -2718,7 +2718,9 @@ class posixAccount extends baseModule implements passwordService {
$format = str_replace('%' . $wc . '%', $value, $format);
}
}
return str_replace(array_keys($this->umlautReplacements), array_values($this->umlautReplacements), strtolower($format));
$format = str_replace(array_keys($this->umlautReplacements), array_values($this->umlautReplacements), strtolower($format));
$format = str_replace(array(' ', '_', '-'), array('', '', ''), $format);
return $format;
}
/**