Pham-Vincent / Equitable-Water-Solutions

3 stars 0 forks source link

Login Page #109

Closed Pham-Vincent closed 2 hours ago

Pham-Vincent commented 1 month ago

We need a Login Page so users are able to get their preferred focus on the map.

snowcov commented 1 month ago

Set up OAuth for google authentication. Attempted to implement google authentication - Had issues likely arising from not having a proper domain. Pivoting to implement custom login form for the time being.

Image

Image

snowcov commented 1 month ago

Reference: https://developers.google.com/identity/sign-in/web/sign-in

snowcov commented 1 month ago

Created Working Registration page based on CSS from: https://codeshack.io/secure-registration-system-php-mysql/

Link (after running flask): http://127.0.0.1:5000/register

Hashes password on input for security. Used Flask implementation to communicate with database and check if username or email from form submission were already in the database, if found, user is redirected to the registration page and nothing is added to database. If successful and username and email are unique, then data will be added to the database and user is redirected to the mapping webpage.

Next Steps: Adding Session Variables Adding Login Adding Settings Page/Options to Registration to Customize user experience

snowcov commented 1 month ago

Reworked hashing for registration and how the registration and login pages interacted.

Reference for code and styling: https://codeshack.io/login-system-python-flask-mysql/

Image

Image

Image

Next Steps: Adding Session Variables Adding Settings Page/Options to Registration to Customize user experience

snowcov commented 2 weeks ago

Update: Temporarily Complete

Session Variables set up, with working registration and login. There is not much too do given the lack of information on this part, I will keep the ticket open, but it will not a primary concern at the moment.

Future Points: