Screens / Staff password reset link
Staff password reset link
Opened from a one-hour reset link (Forgot password, or Reset password in Users). Same flow as the setup link: read the link, set a new password, signed in.
- App routes
/staff-reset- Access
- guest (token in the link)
- Screen code
lib/screens/staff_reset/staff_reset_page.dartlib/screens/staff_reset/staff_reset_controller.dartlib/screens/staff_setup/staff_link_controller.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (2)
| Call | Why the screen makes it | Where in the app code |
|---|---|---|
POST /v1/auth/employee/reset-password/previewWho is this reset link for? |
Read the reset link | lib/screens/staff_setup/staff_link_controller.dart:87lib/screens/staff_reset/staff_reset_controller.dart:16lib/domain/usecases/auth/auth_usecase.dart:49lib/data/repositories/auth_repository.dart:99 |
POST /v1/auth/employee/reset-passwordChoose a new password with a reset link |
Set the new password and sign in | lib/screens/staff_setup/staff_link_controller.dart:131lib/screens/staff_reset/staff_reset_controller.dart:20lib/domain/usecases/auth/auth_usecase.dart:57lib/data/repositories/auth_repository.dart:109 |
Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.