fix(pargar): read login credentials from ConfigService overlay

This commit is contained in:
2026-08-22 15:04:36 +03:30
parent 3ea21594a6
commit 197b49b719
@@ -37,8 +37,9 @@ class PargarInboundController extends Controller
[$username, $password] = $this->pargarLoginCredentials($request);
$expectedUser = $this->normalizeCredential(trim((string) $this->Config('pargar_username')));
$expectedPass = $this->normalizeCredential(trim((string) $this->Config('pargar_password')));
$config = app(ConfigService::class);
$expectedUser = $this->normalizeCredential($config->getString('pargar_username'));
$expectedPass = $this->normalizeCredential($config->getString('pargar_password'));
if ($username !== $expectedUser || $password !== $expectedPass || $expectedUser === '') {
return response()->json([