38 lines
2.8 KiB
Markdown
38 lines
2.8 KiB
Markdown
## ADDED Requirements
|
|
|
|
### Requirement: Mandatory bind completion SHALL return the user to login for manual re-login
|
|
The system SHALL return the user to `pages/login/login` after successful phone binding when the bind page was entered from the mandatory login gate, and SHALL require an explicit user-driven re-login before continuing.
|
|
|
|
#### Scenario: Mandatory bind succeeds and requires manual re-login
|
|
- **WHEN** the user enters `pages/bind/bind` from the mandatory bind-phone gate
|
|
- **AND** the user completes phone binding successfully
|
|
- **THEN** the system SHALL route the user to `pages/login/login` instead of routing directly to `pages/index/index`
|
|
- **AND** the system SHALL show a prompt that binding succeeded and re-login is required
|
|
- **AND** the system SHALL wait for the user to explicitly trigger login again
|
|
|
|
### Requirement: Login input SHALL preserve the prior identifier without auto-submitting
|
|
The system SHALL preserve the identifier that the user previously entered before the mandatory bind flow and SHALL restore it into the login input without automatically starting login.
|
|
|
|
#### Scenario: Login page restores identifier after mandatory bind success
|
|
- **WHEN** the user is returned to `pages/login/login` after successful mandatory phone binding
|
|
- **THEN** the login input SHALL remain populated with the identifier that was entered before the bind flow
|
|
- **AND** the system SHALL NOT auto-submit login or auto-trigger the OAuth flow only because the identifier was restored
|
|
- **AND** the user SHALL manually tap the login action to continue
|
|
|
|
### Requirement: Mandatory post-bind return SHALL avoid automatic recheck dependencies
|
|
The system SHALL avoid depending on an automatic post-bind wechat-login recheck for the mandatory bind-success continuation flow.
|
|
|
|
#### Scenario: Mandatory bind success does not auto-call wechat-login
|
|
- **WHEN** the user completes phone binding successfully from the mandatory login gate
|
|
- **THEN** the system SHALL NOT automatically call `POST /api/c/v1/auth/wechat-login` as the immediate continuation step
|
|
- **AND** the post-bind continuation SHALL depend on the user re-entering the login flow manually
|
|
|
|
### Requirement: Non-mandatory bind completion SHALL keep existing behavior
|
|
The system SHALL keep the existing non-mandatory bind completion behavior when the bind page was entered from a later homepage action rather than from the mandatory login gate.
|
|
|
|
#### Scenario: Ordinary bind completion remains unchanged
|
|
- **WHEN** the user enters `pages/bind/bind` from a later homepage action rather than the mandatory login gate
|
|
- **AND** the user completes phone binding successfully
|
|
- **THEN** the system SHALL keep the current non-mandatory bind completion behavior
|
|
- **AND** the system SHALL NOT force the user back to `pages/login/login` for that ordinary bind flow
|