This is a email service/website which notifies users when ever they receive homework on an application called ClassCharts.
-
add user to database
- verify = 0
-
generate rand 32 char ID
-
generate 32 byte salt
-
hash ID + salt
-
id , hash
-
send email containing verification info
-
del id
-
if userCode, purpose exists: del userCode Purpose
- store userCode, Hash, purpose, Time 1d from now
-
userCode, ID, Purpose
-
select hash from db where userCode and Purpose
-
extract salt and hash
-
hash ID + salt
-
this
if hash = hash:
del from db where userCode and Purpose
return True
else:
return False
Email Verification?id=int Add HWs to database Charges verification of email DeleteAccount?id=int Removes HW from database removes Account EmailVerified AccountDeleted
triggers Add_user_code()
add user to db send email store email code
checks cords and verified
checks code verify add HW
functions | Purpose |
---|---|
/ | add user to db |
Add Account | - veridy = 0 |
\ | send verify email |
/ | remove homework from homeowkr |
Remove Account | - remove account details |
Bugs |
---|
- icloud blocks email |
- hw due same day breaks email format |