Open Alindah opened 2 months ago
This might be able to be done by overiding this template venv/lib/python3.12/site-packages/allauth/templates/allauth/layouts/base.html to use our base.
This path isn't located within the wpa_2p1 project folder, is it? I never actually installed venv on my computer as I used conda instead.
Currently looking through this documentation to see if I can find anything: https://docs.allauth.org/en/latest/common/templates.html
Also do you know how to bypass the "It looks like you might be a bot" message when visiting the sign up page? I'm guessing I'm getting that error because of recaptcha issues based on the signup_view.py file? I never actually got that to work!
Edit: I just realized I had the recaptcha keys in privatefiles.txt instead of secrets.json lol. I still get "Uncaught Error: Invalid reCAPTCHA client id:" in the console after moving the keys to secrets.json though.
Also I found the base template for the third-party login page here from the documentation: https://codeberg.org/allauth/django-allauth/src/branch/main/allauth/templates/socialaccount/login.html
I'm guessing right now it just redirects to use this default code for it, and we'll need to copy this as a file in our repo somewhere to customize it?
When we choose to log in through Google, we are met with a plain page with no CSS as seen below.
We should update this to look more user-friendly.