As | An unauthorized user |
---|---|
I want to | Have my todo items accessibly only by me |
In order to | Avoid unwanted users from accessing my data |
Given | When | Then |
---|---|---|
User is unauthorized | User enters the login screen | System displays the login screen |
User is authorized | User enters the login screen | System redirects user to the todo list screen |
For brevity I further assume that user in unauthorized | ||
- | User enters Username |
System validates it as following
When to display error messages:
|
- | User enters Password |
System validates it as following
When to display error messages:
|
Login, Password are valid
AND Pair (Login, Password) is correct |
User inititates logging in | System redirects user to the todo list screen |
User is unauthorized
AND Login or Password is invalid |
- |
System disables possibility to initiate entering the system
(otherwise enables it) |
Login and Password are valid
AND Pair (Login, Password) is incorrect |
User initiates logging in | System displays error message |
- | User initiates creating a new account | System displays an account creation screen |
As | An unauthorized user |
---|---|
I want to | Create new accounts |
In order to | Save todo items on the server, limit access to the todo items |