Find below the PSEUDOCODE for relevant functions:
Authentication
Code Block |
---|
create user(email, username, password): // Check email if email is valid validate_email(email) // check if username is invalid If len(username) > 100 and len(username) < 5: Input error // check if password is invalid If len(password) > 100 and len(password) < 5: Input error Hash password // check for duplicate email If other user has same email: Input error Create new user Add user to database Return success = True |
...