Password and profile
Resetting a forgotten password and editing a personal profile.
Forgot your password
- The page gives the same answer whether or not the email has an account, so nobody can use it to check who is signed up.
- An expired or used link is refused. Ask for a new one.
Your profile
A personal account edits its profile at /user/setup, one short question at a time.
Nothing is required.
- A short bio.
- City and state, with suggestions and a "use my location" option.
- An address. It stays private: personal accounts have no public page.
Pages that need you signed in
Creating events, My Events, editing your profile, and the attendee pages send signed-out visitors to sign in first. The sign-in and reset pages send already signed-in visitors to the home page.
- Reset:
POST /auth/forgot-password, thenPOST /auth/reset-passwordwith the token from/auth/reset-password/<token>. Only a hash of the token is stored; it lasts 1 hour and is single use. - Profile:
GET /user/profileandPATCH /user/update(only sent fields are written; an address update replaces the whole address). - Route guards:
RequireSignInandDonotRenderWhenLoggedInin the web app.
| Piece | Where |
|---|---|
| Reset email | mailer.ts |
| Profile service | apps/api/src/modules/users/ |