Ecommerce Delivery supports two password-reset paths. The standard path starts atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/ecommerce-delivery-frontend/llms.txt
Use this file to discover all available pages before exploring further.
/change-password, where the user enters their email to receive a 6-digit security code; they then visit /new-password-confirm to enter the code alongside a new password. A token-based path is also available at /update-password-width-token, which reads the user’s email directly from the JWT stored in localStorage and accepts a new password without requiring a manual code entry.
Forgot password flow
Navigate to /change-password
From the sign-in screen the user clicks ¿Olvidaste tu contraseña?, which links to The page renders the
/change-password. The route is defined as:changePassword.vue component, which contains a single email field.Enter registered email address
The user types their registered email and submits the form. The component calls The email field uses the same regex validation as all other auth forms:
POST /api/user/recover-password-code:System sends a reset code
On a successful request, the API emails a 6-digit security code to the registered address and returns a temporary token and user object that are saved to
localStorage. The app then redirects automatically to /new-password-confirm.Set a new password at /new-password-confirm or /update-password-width-token
The user can complete the reset in one of two ways:
/new-password-confirm— Enter email, new password, and the 6-digit code received by email (no token required in the URL)./update-password-width-token— Open the link from the email. The page decodes the JWT already inlocalStorageto pre-fill the email field; the user only needs to enter and confirm the new password.
Confirm new password (code-based)
- Route:
/new-password-confirm· route namenew-password-confirm - Component:
pages/login/confirmeNewPassword→components/login/formconfirmeNewPassword.vue
codePassConfirm). On success the app saves the refreshed token and user to localStorage and navigates to the main store.
Update password with token
- Route:
/update-password-width-token· route nameupdate-password-width-token - Component:
pages/login/updatePass/updatePasswordWithToken→components/login/updatePass/formupdatePasswordWithToken.vue
onMounted the component decodes the JWT from localStorage and pre-fills the email field, which is rendered as disabled (read-only). The user enters a new password and a confirmation. The form validates that both fields match before submitting.
- Minimum 8 characters (validated client-side via Quasar’s
:rulesprop). - New password and confirmation must match (token-based form only).
For the token-based update route (
/update-password-width-token), the JWT must already be present in localStorage. If the token is missing or invalid, the component shows a notification error and redirects to /login. The email field is automatically decoded from the token’s payload — the user never types it manually on this screen.