{"record":{"id":"74dd5d095a5f09f4","repo":"octobercms/october","slug":"unable-to-reset-your-password","errorCode":null,"errorMessage":"Unable to reset your password!","messagePattern":"Unable to reset your password!","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/controllers/Auth.php","lineNumber":282,"sourceCode":"            'password' => __('Password'),\n        ]);\n\n        if ($validation->fails()) {\n            throw new ValidationException($validation);\n        }\n\n        $code = post('code');\n        $user = BackendAuth::findUserById(post('id'));\n\n        if (!$user || !$user->checkResetPasswordCode($code)) {\n            throw new ApplicationException(__('Invalid password reset data supplied. Please try again!'));\n        }\n\n        // Validate password against policy\n        $user->validatePasswordPolicy(post('password'));\n\n        if (!$user->attemptResetPassword($code, post('password'))) {\n            throw new ApplicationException(__('Unable to reset your password!'));\n        }\n\n        // Clear the code used to reset the password\n        $user->clearResetPassword();\n\n        // Clear throttles\n        BackendAuth::clearThrottleForUserId($user->id);\n\n        Flash::success(__('Password has been reset. You may now sign in.'));\n\n        return Backend::redirect('backend/auth/signin');\n    }\n\n    /**\n     * setup will allow a user to create the first admin account\n     */\n    public function setup()\n    {","sourceCodeStart":264,"sourceCodeEnd":300,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/controllers/Auth.php#L264-L300","documentation":"Error \"Unable to reset your password!\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/controllers/Auth.php:282 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"}