Forgot password — Owner / Employee
import { Card, CardGrid, Steps, Aside } from ‘@astrojs/starlight/components’;
I. Overview
Section titled “I. Overview”The shared Forgot password screen (/forgot-password) is the recovery flow for the dashboard side (i.e. /login for employees and /vendor-login for owners). It exposes an Owner / Staff toggle that pins the request to one vendor type.

II. URL variants
Section titled “II. URL variants”| URL | Behaviour |
|---|---|
/forgot-password | Shows the toggle, defaults to Employee |
/forgot-password?type=owner | Hides the toggle, pins to Owner |
/forgot-password?type=employee | Hides the toggle, pins to Employee |

The cashier-only flow /cashier-login/forgot-password does not have a toggle at all (cashier is the only allowed type there). See Forgot password — Cashier.
III. Step-by-step
Section titled “III. Step-by-step”-
Pick your vendor type (only if the toggle is shown).
- Owner → for store accounts.
- Staff → for employee accounts.
-
Enter your email and click “Send code”.
- A 6-digit OTP is emailed to you (valid 10 minutes).
-
Enter the OTP at
/verify-otp(see Verify OTP). -
Set a new password at
/reset-password(see Reset password). -
Sign in again at the original screen (
/loginor/vendor-login).
IV. Common errors
Section titled “IV. Common errors”| Banner | Meaning | Fix |
|---|---|---|
Enter a valid email address. | Email format invalid | Re-type carefully |
This email is not registered as <vendor type>. | Email is unknown, or you picked the wrong toggle | Toggle Owner/Staff, or contact the owner |
Too many requests. | Rate-limit hit | Wait 60 seconds |
V. Related
Section titled “V. Related”- Cashier login — Cashier dedicated screen.
- Cashier forgot-password — Cashier-only flow.
- Vendor login (Owner) — Where the owner link lives.
- Verify OTP — Next step.
- Reset password — Final step.