{"record":{"id":"de1c5ba1ce7c9d30","repo":"octobercms/october","slug":"a-user-could-not-be-found-with-a-login-value-of","errorCode":null,"errorMessage":"A user could not be found with a login value of ':login'","messagePattern":"A user could not be found with a login value of ':login'","errorType":"validation","errorClass":"ValidationException","httpStatus":null,"severity":"error","filePath":"modules/backend/controllers/Auth.php","lineNumber":200,"sourceCode":"        }\n\n        // Throttle reset requests by IP to limit email flooding and slow\n        // username enumeration via timing analysis.\n        $limiter = new RateLimiter('backend.auth.restore');\n        if ($limiter->tooManyAttempts(5)) {\n            throw new ApplicationException(__(\"Too many password reset attempts, please try again in :seconds seconds.\", [\n                'seconds' => $limiter->availableIn()\n            ]));\n        }\n\n        $limiter->increment(600);\n\n        $user = BackendAuth::findUserByLogin(post('login'));\n\n        if (!$user) {\n            // For security reasons, only show detailed error when debug mode is on\n            if (System::checkDebugMode()) {\n                throw new ValidationException([\n                    'login' => __(\"A user could not be found with a login value of ':login'\", ['login' => post('login')])\n                ]);\n            }\n        }\n        else {\n            // User found, send reset email\n            $code = $user->getResetPasswordCode();\n            $link = Backend::url('backend/auth/reset/' . $user->id . '/' . $code);\n\n            $data = [\n                'name' => $user->full_name,\n                'link' => $link,\n            ];\n\n            Mail::send('backend:restore', $data, function ($message) use ($user) {\n                $message->to($user->email, $user->full_name)->subject(__('Password Reset'));\n            });\n        }","sourceCodeStart":182,"sourceCodeEnd":218,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/controllers/Auth.php#L182-L218","documentation":"Error \"A user could not be found with a login value of ':login'\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/controllers/Auth.php:200 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}