getEnableStreamers()) { throw new RuntimeException('Attempted DJ authentication when streamers are disabled on this station.'); } $user = $payload['user'] ?? ''; $pass = $payload['password'] ?? ''; // Allow connections using the exact broadcast source password. $sourcePw = $station->getFrontendConfig()->getSourcePassword(); if (!empty($sourcePw) && strcmp($sourcePw, $pass) === 0) { return true; } return $this->streamerRepo->authenticate($station, $user, $pass); } }