fix(pargar): read login credentials from ConfigService overlay
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user