Skip to content

Change password ​

Change Password page screenshot

Overview ​

Protected form for changing the signed-in user's password.

  • Route: /change-password
  • Source: front/src/pages/ChangePassword.tsx
  • API: POST /auth/change-password

User actions and validation ​

The user enters current, new, and confirmation passwords. Client-side checks reject mismatched confirmation and new passwords shorter than six characters. The page supports show/hide controls and displays a client-computed password strength label. Successful submission clears the inputs and shows temporary success feedback.

Loading and errors ​

The submit button uses loading state. API errors are rendered using response.data.error, the thrown message, or a generic fallback. Server-side password requirements are not available from the frontend source.

Source: front/src/pages/ChangePassword.tsx, front/src/services/api/authService.ts.

See Authentication API.