Open lingering126 opened 2 months ago
I have already completed this part and passed the tests in my environment. It's in the "user-account-create&login" branch.
Then, once the front-end completed, I will pull the changes in his branch and test my code. If it works, I will create a pull request.
This is the image demo:
If anyone has any ideas, feel free to comment below! 😀
Feature: Allow users to create their accounts with their username, password and emails, and log in with username and password.
Proposed implementation:
User registration: Can create a registration form with fileds for username, password and email. It should have a validation which makes sure the username is unique. When the user submits the registration form, it should send a POST request to the server, and insert the user record to the sqlite database. To secure the password, it should be hashed before storing.
User login: It should have a login form with fields for username and password. After the user filled the form, it sends a POST request to the server, then the server retrive the user record from the database. If matched, the user should be directed to a home page, otherwise, prompts users that the username and password mismatched.