-
Notifications
You must be signed in to change notification settings - Fork 11
User Interface
Song Zheng edited this page Mar 23, 2020
·
58 revisions
- Forget password feature is unplanned. During development, please don't forget your credentials!
Really simple and straightforward landing page view.
Decisions
- Keeping it simple, validation is only done once when users submit. May upgrade to input validations as users type later.
We decided to opt out of putting a confirm password
input box.
- E-mail input
- Username input
- Password input
Takes user to Login page.
Trigger validations on backend
- Username validations
- Must have valid characters (alpha numberic characters only)
- must be >= 1 character
- Must not exist in the DB
- Email validation -> TODO: delete unconfirmed accounts.
- Must be a valid email
- Must not exist in the DB
- Password validation
- greater than 8 characters Sends a POST request to server which responds with:
- Error - Display the errors on signup page
- Success - takes the user to the Confirm Email Page.
Renders a reminder for users to confirm their email.
- Logout
Resend email -> Results in Your email has been sent message
.
Button / link for users to confirm their email.
A place for user to specify the database password they want to setup their database password. This password is not encrypted because our system needs to know about it in order to create the database. Tradeoffs
- V1 - Will not be providing an option to allow users to change their database password.
- Logout
Input password - Greater than 8 characters Takes users to Database Page
- Username Input
- Password Input
- Signup button -> Takes the user to signup page.
- Login Button -> sends a POST request to server which responds with:
- Error - Display the errors on login page
- Success - Look at login validations below.
- Checks if e-mail confirmed
- If e-mail is not confirmed, render confirm e-mail page.
- Checks if database password has been set
- If database password has not been set, send user to database setup page.
- If the above 2 validations pass, send user to database page.
- Displays list of database cards
- If database has been created, show credentials button
- Show
Create Database
button.
- Logout Button
- Sends a get request to logout endpoint