octobercms/october · error · ApplicationException

Invalid password reset data supplied. Please try again!

Error message

Invalid password reset data supplied. Please try again!

What it means

Thrown by Auth::reset when the reset URL is missing the userId or code parameter — the signature /backend/auth/reset/{userId}/{code} was opened without both segments. It is a request-shape guard on the restore email link, meaning the reset data in the URL is incomplete or malformed.

Solutions

  1. Use the complete reset link from the password-restore email containing both user id and verification code
  2. Regenerate the restore email to obtain a fresh, complete link
  3. If constructing URLs manually, include both route parameters
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/controllers/Auth.php:239 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/3962f852ed4d7506. Report an issue: GitHub.

Appendix: source

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

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

    /**
     * reset backend user password using verification code
     */
    public function reset($userId = null, $code = null)
    {
        if (!$this->checkCanReset()) {
            throw new NotFoundException;
        }

        try {
            if ($this->checkPostbackFlag()) {
                return $this->handleSubmitReset();
            }

            if (!$userId || !$code) {
                throw new ApplicationException(__('Invalid password reset data supplied. Please try again!'));
            }
        }
        catch (Exception $ex) {
            Flash::error($ex->getMessage());
        }

        $this->vars['code'] = $code;
        $this->vars['id'] = $userId;
    }

    /**
     * handleSubmitReset submits the reset form
     */
    protected function handleSubmitReset()
    {
        if (!post('id') || !post('code')) {
            throw new ApplicationException(__('Invalid password reset data supplied. Please try again!'));
        }

View on GitHub (pinned to b608633a7e)