{"proj": "jabrokwah/tickets-manager", "id": 322, "default_branch": null, "total_files": 832, "scanned": 175, "errors": 0, "truncated": false, "findings": [{"file": ".env.example", "hits": [{"kind": "assign", "key": "APP_KEY", "value": "APP_DEBUG=true", "line": "APP_KEY=\nAPP_DEBUG=true"}, {"kind": "assign", "key": "PASSWORD", "value": "BROADCAST_DRIVER=log", "line": "DB_PASSWORD=\n\nBROADCAST_DRIVER=log"}, {"kind": "assign", "key": "ACCESS_KEY", "value": "AWS_DEFAULT_REGION=us-east-1", "line": "AWS_SECRET_ACCESS_KEY=\nAWS_DEFAULT_REGION=us-east-1"}, {"kind": "assign", "key": "APP_KEY", "value": "PUSHER_APP_SECRET=", "line": "PUSHER_APP_KEY=\nPUSHER_APP_SECRET="}]}, {"file": "app/Http/Controllers/AuthController.php", "hits": [{"kind": "assign", "key": "Auth", "value": ":check())){", "line": "        if(!empty(Auth::check())){"}, {"kind": "assign", "key": "Auth", "value": ":attempt([", "line": "        if (Auth::attempt(['email' => $request->email, 'password' => $request->password], $remember)){"}, {"kind": "assign", "key": "Auth", "value": ":logout()", "line": "        Auth::logout();"}]}, {"file": "app/Http/Controllers/UserController.php", "hits": [{"kind": "assign", "key": "password", "value": "$request->password", "line": "        $user->password = $request->password;"}]}, {"file": "app/Http/Kernel.php", "hits": [{"kind": "assign", "key": "Token", "value": ":class", "line": "            \\App\\Http\\Middleware\\VerifyCsrfToken::class,"}, {"kind": "assign", "key": "Auth", "value": ":class", "line": "        'auth.basic' => \\Illuminate\\Auth\\Middleware\\AuthenticateWithBasicAuth::class,"}, {"kind": "assign", "key": "Password", "value": ":class", "line": "        'password.confirm' => \\Illuminate\\Auth\\Middleware\\RequirePassword::class,"}]}, {"file": "app/Http/Middleware/AdminMiddleware.php", "hits": [{"kind": "assign", "key": "Auth", "value": ":check()", "line": "        if (Auth::check() && Auth::user()->role->id==1) {"}, {"kind": "assign", "key": "Auth", "value": ":user()->role->id==1)", "line": "        if (Auth::check() && Auth::user()->role->id==1) {"}, {"kind": "assign", "key": "Auth", "value": ":logout()", "line": "                Auth::logout();"}]}, {"file": "app/Http/Middleware/AllUsersMiddleware.php", "hits": [{"kind": "assign", "key": "Auth", "value": ":check()", "line": "        if (Auth::check() && in_array(Auth::user()->role->id,[1,2,3,4,5,6,7,8,9,10,11])) {"}, {"kind": "assign", "key": "Auth", "value": ":user()->role->id", "line": "        if (Auth::check() && in_array(Auth::user()->role->id,[1,2,3,4,5,6,7,8,9,10,11])) {"}, {"kind": "assign", "key": "Auth", "value": ":logout()", "line": "                Auth::logout();"}]}, {"file": "app/Http/Middleware/RedirectIfAuthenticated.php", "hits": [{"kind": "assign", "key": "Auth", "value": ":guard($guard)->check())", "line": "            if (Auth::guard($guard)->check()) {"}]}, {"file": "config/sanctum.php", "hits": [{"kind": "assign", "key": "Token", "value": ":class", "line": "        'verify_csrf_token' => App\\Http\\Middleware\\VerifyCsrfToken::class,"}]}, {"file": "database/seeders/UserSeeder.php", "hits": [{"kind": "assign", "key": "password", "value": "12345678", "line": "        $user->password='12345678';"}]}, {"file": "public/app/bundles/ckeditor/ckeditor.js", "hits": [{"kind": "assign", "key": "Token", "value": "function", "line": "            getCookie: function (a) { a = a.toLowerCase(); for (var e = document.cookie.split(\";\"), b, c, g = 0; g < e.length; g++)if (b = e[g].split(\"\\x3d\"), c = decodeURIComponent(CKEDITOR.tools.trim(b[0]).toLowerCase()), c === a) return decodeURIComponent(1 < b.length ? b[1] : \"\"); return null }, setCookie: function (a, b) { document.cookie = encodeURIComponent(a) + \"\\x3d\" + encodeURIComponent(b) + \";path\\x3d/\" }, getCsrfToken: function () {"}, {"kind": "assign", "key": "accessKey", "value": "advAccessKey", "line": "                id: \"advId\", dir: \"advLangDir\", accessKey: \"advAccessKey\", name: \"advName\", lang: \"advLangCode\", tabindex: \"advTabIndex\","}]}, {"file": "public/app/bundles/codemirror/lib/codemirror.js", "hits": [{"kind": "assign", "key": "Token", "value": "function", "line": "StringStream.prototype.baseToken = function () {"}, {"kind": "assign", "key": "Token", "value": "function", "line": "Context.prototype.baseToken = function (n) {"}, {"kind": "assign", "key": "Token", "value": "function(stream", "line": "var Token = function(stream, type, state) {"}, {"kind": "assign", "key": "Token", "value": "buildToken", "line": "    builder.addToken = buildToken"}, {"kind": "assign", "key": "Token", "value": "buildTokenBadBidi(builder.addToken", "line": "      { builder.addToken = buildTokenBadBidi(builder.addToken, order) }"}, {"kind": "assign", "key": "token", "value": "function", "line": "CodeMirror.defineMode(\"null\", function () { return ({token: function (stream) { return stream.skipToEnd(); }}); })"}]}, {"file": "public/app/bundles/codemirror/mode/javascript/javascript.js", "hits": [{"kind": "assign", "key": "token", "value": "function(stream", "line": "    token: function(stream, state) {"}]}, {"file": "public/app/bundles/echart/echarts.js", "hits": [{"kind": "assign", "key": "token", "value": "line.tokens[j]", "line": "                var token = line.tokens[j];"}, {"kind": "assign", "key": "token", "value": "pendingList[i]", "line": "            var token = pendingList[i];"}, {"kind": "assign", "key": "token", "value": "tokens[leftIndex]", "line": "                && (token = tokens[leftIndex], !token.textAlign || token.textAlign === 'left')"}, {"kind": "assign", "key": "token", "value": "tokens[rightIndex]", "line": "                && (token = tokens[rightIndex], token.textAlign === 'right')"}, {"kind": "assign", "key": "token", "value": "tokens[leftIndex]", "line": "                token = tokens[leftIndex];"}]}, {"file": "public/app/bundles/prism/prism.js", "hits": [{"kind": "assign", "key": "Token", "value": "function(e", "line": "var _self=\"undefined\"!=typeof window?window:\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\\blang(?:uage)?-(\\w+)\\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):\"Array\"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").r"}]}, {"file": "routes/api.php", "hits": [{"kind": "assign", "key": "auth", "value": "sanctum", "line": "Route::middleware('auth:sanctum')->get('/user', function (Request $request) {"}]}]}