Panly API docsstaging

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.dart
lib/screens/staff_reset/staff_reset_controller.dart
lib/screens/staff_setup/staff_link_controller.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (2)

CallWhy the screen makes itWhere in the app code
POST /v1/auth/employee/reset-password/preview
Who is this reset link for?
Read the reset link lib/screens/staff_setup/staff_link_controller.dart:87
lib/screens/staff_reset/staff_reset_controller.dart:16
lib/domain/usecases/auth/auth_usecase.dart:49
lib/data/repositories/auth_repository.dart:99
POST /v1/auth/employee/reset-password
Choose a new password with a reset link
Set the new password and sign in lib/screens/staff_setup/staff_link_controller.dart:131
lib/screens/staff_reset/staff_reset_controller.dart:20
lib/domain/usecases/auth/auth_usecase.dart:57
lib/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.