Livoa LogoLivoa
New User
WebApp (Frontend + API)
AuthService
Database
SessionManager
openRegisterPage()
showRegisterForm()
submitRegistration(name, email, password, accountType)
validateInput(data)
inputValid = true
SELECT * FROM Users WHERE email = ?
found = false
alt
[email already exists]
showError("Email already taken")
[ok]
hashPassword(password)
hashedPassword
INSERT INTO Users(name, email, hashedPassword, accountType, status=Active)
newUserId
createSession(newUserId)
sessionCreated
redirectToDashboard(accountType)
UC-1 Registration Sequence

sequence diagram

by mahmoud megahed

0
0 uses