SL
SkillsLao Backoffice
Prototype
๐ŸŽฌ Simulate:

Set Password โ€” Staff Activation

Welcome, Somsak Vongphachanh. Please set a password for your new account.

  • Minimum 8 characters
  • At least 1 uppercase letter
  • At least 1 lowercase letter
  • At least 1 number
๐Ÿ“ Spec notes โ€” UC-IDP.03 / SCR-IDP.14 (fields, actions, requirements)
Identity
  • Screen: SCR-IDP.14 โ€” Set Password โ€” Staff Activation
  • Use case: UC-IDP.03 โ€” Activate Staff Account (main flow step 4โ€“5, after Email + Password is selected on SCR-IDP.12)
Brief description

Password-setting screen for staff/instructor account activation โ€” shown after the invitee successfully verifies identity via the Email + Password path in UC-IDP.03. Shows the invitee's full name from the UserInvitation record to confirm context before the user sets a password. The system validates complexity per SS-IDP.19 (minimum 8 characters, at least one uppercase letter, one lowercase letter, and one digit) and checks that both entries match. Separated from SCR-IDP.11 (learner registration) to allow dedicated back-office branding and copy.

Fields
  • invited_fullname "Welcome" โ€” text ยท session.invited_fullname (UserInvitation.firstname + " " + lastname, set at link validation) ยท always ยท read-only ยท client must not fetch UserInvitation directly
  • new_password "New Password" โ€” password ยท required ยท validation: min_length:8, has_uppercase, has_lowercase, has_digit [SS-IDP.19]
  • confirm_password "Confirm New Password" โ€” password ยท required ยท validation: must_match:new_password
Actions
  • submit "Set Password & Activate" โ€” enabled when required_fields_valid ยท triggers UC-IDP.03-M-5
Additional requirements
  1. Show real-time password checklist as user types in new_password โ€” each criterion changes from pending to success icon when met: min 8 chars, โ‰ฅ1 uppercase, โ‰ฅ1 lowercase, โ‰ฅ1 digit. [refs: SS-IDP.19]
  2. invited_fullname sourced from session.invited_fullname (server-composed from UserInvitation, set at link validation). Client must not fetch UserInvitation directly.
  3. Error "Passwords do not match" must appear inline below confirm_password on blur or submit โ€” not as a toast or alert.
  4. There is no Back or Cancel button on this screen โ€” once the invitee reaches this screen, they must complete the password before leaving the flow. The browser Back button must not return the user to the Activation Landing screen (SCR-IDP.12), because the activation token session is invalidated after successful identity verification.