octobercms/october · error · ApplicationException

Unable to reset your password!

Error message

Unable to reset your password!

What it means

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.

Solutions

  1. Restart the password restore flow to get a fresh verification code (the old one may have expired or been used)
  2. Verify the code and user id in the URL match the most recent restore email
  3. Check application logs for the underlying persistence failure of attemptResetPassword
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at modules/backend/controllers/Auth.php:282 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21). Data as JSON: /api/errors/74dd5d095a5f09f4. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/controllers/Auth.php:282

            'password' => __('Password'),
        ]);

        if ($validation->fails()) {
            throw new ValidationException($validation);
        }

        $code = post('code');
        $user = BackendAuth::findUserById(post('id'));

        if (!$user || !$user->checkResetPasswordCode($code)) {
            throw new ApplicationException(__('Invalid password reset data supplied. Please try again!'));
        }

        // Validate password against policy
        $user->validatePasswordPolicy(post('password'));

        if (!$user->attemptResetPassword($code, post('password'))) {
            throw new ApplicationException(__('Unable to reset your password!'));
        }

        // Clear the code used to reset the password
        $user->clearResetPassword();

        // Clear throttles
        BackendAuth::clearThrottleForUserId($user->id);

        Flash::success(__('Password has been reset. You may now sign in.'));

        return Backend::redirect('backend/auth/signin');
    }

    /**
     * setup will allow a user to create the first admin account
     */
    public function setup()
    {

View on GitHub (pinned to b608633a7e)