Removed strict comparison on authorization token
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
This commit is contained in:
@@ -3982,7 +3982,7 @@ class CharacteristicsController extends Controller
|
|||||||
$headerAuth = $request->header('Authorization');
|
$headerAuth = $request->header('Authorization');
|
||||||
$expectedToken = 'Bearer '.$expectedUser.':'.$expectedPw;
|
$expectedToken = 'Bearer '.$expectedUser.':'.$expectedPw;
|
||||||
|
|
||||||
if ($headerAuth !== $expectedToken) {
|
if ($headerAuth != $expectedToken) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Invalid authorization token!',
|
'status_description' => 'Invalid authorization token!',
|
||||||
@@ -4236,7 +4236,7 @@ class CharacteristicsController extends Controller
|
|||||||
$headerAuth = $request->header('Authorization');
|
$headerAuth = $request->header('Authorization');
|
||||||
$expectedToken = 'Bearer '.$expectedUser.':'.$expectedPw;
|
$expectedToken = 'Bearer '.$expectedUser.':'.$expectedPw;
|
||||||
|
|
||||||
if ($headerAuth !== $expectedToken) {
|
if ($headerAuth != $expectedToken) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Invalid authorization token!',
|
'status_description' => 'Invalid authorization token!',
|
||||||
@@ -5315,7 +5315,7 @@ class CharacteristicsController extends Controller
|
|||||||
$headerAuth = $request->header('Authorization');
|
$headerAuth = $request->header('Authorization');
|
||||||
$expectedToken = 'Bearer '.$expectedUser.':'.$expectedPw;
|
$expectedToken = 'Bearer '.$expectedUser.':'.$expectedPw;
|
||||||
|
|
||||||
if ($headerAuth !== $expectedToken) {
|
if ($headerAuth != $expectedToken) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Invalid authorization token!',
|
'status_description' => 'Invalid authorization token!',
|
||||||
|
|||||||
Reference in New Issue
Block a user