| | 1 | == Registration of a new user == |
| | 2 | |
| | 3 | === Actors === |
| | 4 | Guest |
| | 5 | |
| | 6 | === Scenario === |
| | 7 | 1. The guest clicks on the "REGISTER" button |
| | 8 | 2. A registration form is displayed |
| | 9 | 3. User fills out the form and clicks REGISTER |
| | 10 | 4. The server validates the form data and inserts a new entry in the Users table |
| | 11 | {{{ |
| | 12 | insert into users (username, email, password_hash) |
| | 13 | values ('<username>', '<email>', '<passwordHash>') |
| | 14 | returning id; |
| | 15 | }}} |
| | 16 | |
| | 17 | 5. The user gets a success message and is redirected to the login screen |