Changes between Version 2 and Version 3 of NewUserRegistration
- Timestamp:
- 01/22/26 02:42:50 (16 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewUserRegistration
v2 v3 3 3 ==== Actors: **Guest User** 4 4 5 **1.** A guest user selects Register and chooses to register as a regular user.5 **1.** Check if Email Already Exists 6 6 7 **2.** The user enters personal details.8 7 9 **3.** The system creates the user with role USER. 8 {{{#!sql 9 SELECT COUNT(*) 10 FROM user_entity 11 WHERE email = :email; 12 13 14 15 }}} 16 17 18 **2.** Create New User Account. 10 19 11 20 12 21 {{{#!sql 13 22 INSERT INTO user_entity (first_name, last_name, email, password, role) 14 VALUES ( 'John', 'Doe', 'john.doe@email.com', 'hashed_password', 'USER');23 VALUES (:firstName, :lastName, :email, :hashedPassword, 'USER'); 15 24 25 26 27 }}} 28 29 30 31 **3.** Create Record in users Table. 32 33 34 {{{#!sql 16 35 INSERT INTO users (id) 17 36 VALUES (currval('user_entity_id_seq'));
