#6858·mumble

Unable to set password when registering user via Ice

Author: ThreadDeathCreated Jun 28, 2025Updated Sep 11, 2026
Labelsservericebug

The issue

I'm trying to create a user using PHP in combination with ICE, and I'm using MySQL as the database. However, the three fields 'password_hash', 'salt', and 'kdf_iterations' always turn out to be empty. This has been bothering me for days. Can someone help me figure this out? Below is the key code.

 public static function registerUser(string $username, string $password, ?string $email = null): ?int
    {
        try {
            $server = self::getMumbleServer();
            $userInfoMap = [
                \MumbleServer\UserInfo::UserName => $username,
                \MumbleServer\UserInfo::UserPassword => $password,
                \MumbleServer\UserInfo::UserEmail => $email ?? ''
            ];

            $userId = $server->registerUser($userInfoMap);

            return $userId;
        } catch (\Exception $e) {
            Log::error("register user failed", [
                'username' => $username,
                'error' => $e->getMessage(),
                'error_type' => get_class($e),
                'stack_trace' => $e->getTraceAsString()
            ]);
            throw $e;
        }
    }
Image

Mumble version

1.5.735

Mumble component

Client

OS

macOS

Additional information

No response