Skip to content

Verify OTP

import { Card, CardGrid, Steps, Aside } from ‘@astrojs/starlight/components’;

/verify-otp is the second step of the password-reset flow. After you request a reset, we email a 6-digit code to your inbox. Enter it here to prove ownership and unlock the “Set new password” screen.

You must reach this screen from the Forgot-password screen — the OTP email and vendor_type are stored in sessionStorage. Direct navigation is bounced back to /forgot-password.

Verify OTP — empty form

1. **Open your email** and copy the 6-digit code. - The email is sent from `no-reply@lionpos.local` (test) or your production domain. - Subject: *"Your LionPOS password reset code"*.
  1. Enter the code on /verify-otp.

    • The field accepts digits only; non-digit characters are stripped automatically.
    • Use paste (Ctrl/Cmd + V) — the field auto-trims to 6 characters.
  2. Click “Verify code”.

    • On success you are routed to /reset-password to set a new password.
  3. Set the new password (see Reset password).

Verify OTP — filled

Below the Verify code button there is a “Resend code” link.

1. Click **"Resend code"**. 2. Wait for the new email (1–2 minutes). 3. Enter the latest code — **older codes become invalid** the moment you click Resend.
BannerMeaningFix
Invalid or expired code.Code is wrong, expired (>10 min), or already usedClick Resend and try again
This email is not registered.sessionStorage lost the email (e.g. you opened this URL in another tab)Restart from /forgot-password
Too many requests.Resend rate-limit hitWait 60 seconds