admin 13
This commit is contained in:
@@ -39,7 +39,7 @@ class JwtService
|
||||
$this->secretKey = trim(file_get_contents('/home/intaleq-api/.secret_key'));
|
||||
$this->hmacSecret = getenv('SECRET_KEY_HMAC') ?: '';
|
||||
$this->fpPepper = getenv('FP_PEPPER') ?: '';
|
||||
$this->issuer = getenv('APP_ISSUER') ;
|
||||
$this->issuer = (string)(getenv('APP_ISSUER') ?: '');
|
||||
$this->redis = $redis;
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ class JwtService
|
||||
}
|
||||
}
|
||||
|
||||
private static function abort(int $code, string $message): never
|
||||
private static function abort(int $code, string $message)
|
||||
{
|
||||
error_log("[JWT_AUTH_FAILED] Code: $code | Message: $message | IP: " . ($_SERVER['REMOTE_ADDR'] ?? '?') . " | URI: " . ($_SERVER['REQUEST_URI'] ?? '?'));
|
||||
http_response_code($code);
|
||||
|
||||
Reference in New Issue
Block a user