-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Story
0 / 10 of 1 issue completed
Copy link
Labels
type:storyuser storiesuser stories
Description
Requirements
Functional Requirements
What the product must do.
- Allow users to set and update display name
- Allow users to set and update display photo
- Allow users to update their email address
- Allow users to update their password
Non-Functional Requirements
How the product must behave.
- Authenticate users using JWTs
- Prevent sensitive data exposure
- Prevent unauthorized account updates
Out of Scope
Items that are specifically excluded from this feature.
n/a
Acceptance Criteria
Overall acceptance criteria for the feature.
-
Scenario: Successful account update
Givenan authenticated userWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references the account of the authenticated userThensend200response
-
Scenario: Account mismatch
Givenauthenticated userAWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references the account of userBThensend403response
-
Scenario: Invalid token
Givena user with an invalid tokenWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references an existing accountThensend401response
-
Scenario: Missing account
Givenany userWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter does not reference an existing accountThensend404response
-
Scenario: Missing token
Givena user without a tokenWhena request is sent toPATCH /accounts/:uidAndthe:uidparameter references an existing accountThensend401response
-
Scenario: An unknown error occurs
Whenany request is sent toPATCH /accounts/:uidAndan unknown error occursThensend500response
Sub-issues
Metadata
Metadata
Assignees
Labels
type:storyuser storiesuser stories
Type
Projects
Status
π In progress