diff --git a/app/Models/YnhServer.php b/app/Models/YnhServer.php index 5c44620..1513981 100644 --- a/app/Models/YnhServer.php +++ b/app/Models/YnhServer.php @@ -1049,6 +1049,7 @@ private function sshCreateUserProfile(SshConnection2 $ssh, string $fullname, str } $fullname = preg_replace("/[^A-Za-z0-9 ,.'-]/", '', $fullname); + $fullname = Str::lower($fullname); $password = Str::replace('!', '\!', $password); // history substitution $ssh->newTrace(SshTraceStateEnum::IN_PROGRESS, 'Creating user profile...'); $isOk = $ssh->executeCommand("sudo yunohost user create {$username} -F \"{$fullname}\" -p \"{$password}\" -d {$domain->name}", $output);