trevorhuang1 / lmc-frontend

Apache License 2.0
0 stars 0 forks source link

feature/LMC-007-login-page #12

Open hanlunli opened 7 months ago

hanlunli commented 7 months ago

login page for team teach, frontend+backend, add profile elements for funny

M8tth3 commented 7 months ago

Fixed issue and can now login based on the database. IA added some SASS elements, which will be changed later. First draft. Login feature is complete, next is adding the create user option, plus other aspects to user profile. lmc

M8tth3 commented 7 months ago

Added sign up page, a editing user profile. However, Delete is getting many CORS Errors image

hanlunli commented 7 months ago

image edit user code form backend, with error handling, made it so that edit user button only edits user if the user has an admin cookie, image

hanlunli commented 7 months ago

image When the user logs in, their user id is saved into local storage, then it is retrieved right here. This user id is used to delete the user when the "delete user" button is pressed image backend allows any user to delete themselves.