Devlog #4
Login/Signup/Logout has been setup.
When a user Signs up a database.db is created to store the user’s stuff. And after signing up they are automatically logged in and redirected to the home page. The home page is only available once the user has been logged in.
If you already have an account you can login and after doing so you will be redirected to the home page.
If the user clicks logout the are sent back to the login page and they must login to access the home page.
Hashing:
When the user creates/enters the password it is hashed using SHA-256. Imported from werkzeug.security
Sign up page’s constraints:
- If the email entered already has an account the new user will not be able to sign up with that email.
- The email must be greated than 4 characters.
- The first name must have 1 character
- The first password entered must match the password entered under “confirm password”
- The password must be atleast 7 characters
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.