{"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":"Generic failure guard in Auth::handleSubmitReset: after the user and reset code validate and the password policy passes, $user->attemptResetPassword() still returns false — the code was consumed/expired or the reset could not be persisted. It means the final reset step itself failed despite valid-looking inputs.","triggerScenarios":"Thrown at modules/backend/controllers/Auth.php:282 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restart the password restore flow to get a fresh verification code (the old one may have expired or been used)","Verify the code and user id in the URL match the most recent restore email","Check application logs for the underlying persistence failure of attemptResetPassword"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}