Changes between Version 2 and Version 3 of NewUserRegistration


Ignore:
Timestamp:
01/22/26 02:42:50 (16 hours ago)
Author:
221296
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewUserRegistration

    v2 v3  
    33==== Actors: **Guest User**
    44
    5 **1.** A guest user selects Register and chooses to register as a regular user.
     5**1.** Check if Email Already Exists
    66
    7 **2.** The user enters personal details.
    87
    9 **3.** The system creates the user with role USER.
     8{{{#!sql
     9SELECT COUNT(*)
     10FROM user_entity
     11WHERE email = :email;
     12
     13
     14
     15}}}
     16
     17
     18**2.** Create New User Account.
    1019
    1120
    1221{{{#!sql
    1322INSERT INTO user_entity (first_name, last_name, email, password, role)
    14 VALUES ('John', 'Doe', 'john.doe@email.com', 'hashed_password', 'USER');
     23VALUES (:firstName, :lastName, :email, :hashedPassword, 'USER');
    1524
     25
     26
     27}}}
     28
     29
     30
     31**3.** Create Record in users Table.
     32
     33
     34{{{#!sql
    1635INSERT INTO users (id)
    1736VALUES (currval('user_entity_id_seq'));