Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 929 Bytes

README.md

File metadata and controls

55 lines (40 loc) · 929 Bytes

Lecture 13 - Create Models, Write Pseudo Code and Adda

Pseudo code

Authentication

Registration Process:

Start
name = input()
email = input()
password = input()
if name && email && password is invalid:
  return 400 error

user = find user with email
if user found:
  return 400 error

hash = hash password
user = save name, email, hash to user model
return 201
End

Login Process:

Start
email = input()
password = input()

user = find user with email
if user not found:
  return 400 error

if password not equal to user hash:
  return 400 error

token = generate token using user
return token
End

Progress:
Follow this link to check the progress

Source Code
Click Here

Class Overview: Lecture 13