Concerned-Coyotes / summer-code-jam-2020

The repository for the 2020 summer code jam. Find more information at https://pythondiscord.com/pages/code-jams/code-jam-7/
MIT License
0 stars 0 forks source link

Authentication v1 #31

Closed isimic95 closed 4 years ago

isimic95 commented 4 years ago

Close #15

HealYouDown commented 4 years ago

Looks good to me.

Hoewever, I would like to somehow include the location data for the user on the registration. This could be done via two hidden fields, one for longitude and one for latidude. This would allow us to show content on the first dashboard rendering, instead of then having to ask for permissions and reload the page again. Is that possible? I think we would just have to check in the backend if both fields are present.

~We would also need a more customized user model, as it needs to save the longitude and the latidude as well.~

Another thing I would like to point out is that I'm not sure if we need a profile page. We could display a dropdown on the dashboard with the option to reset the email / password, if that is needed. I think it is enough if you see two links on the login page to do so. Or did you have another plan what to display on the account/profile page?

MushroomMaula commented 4 years ago

I tried opening the urls you added @isimic95, however all return Page not found maybe there is some misconfiguration with the url settings or templates?

HealYouDown commented 4 years ago

I tried opening the urls you added @isimic95, however all return Page not found maybe there is some misconfiguration with the url settings or templates?

They work for me. Only some templates can't be loaded as there is no base.html, which will be fixed once it is merged, as we will combine it with the base.html from the dashboard app.

MushroomMaula commented 4 years ago

After trying again you are right. Login and Register views are working fine

MushroomMaula commented 4 years ago

Actually we dont need a customized user model but can just use proxy models as shown in the docs extending the user model.

HealYouDown commented 4 years ago

I now removed all unnecessary urls.

Because we do not have a lot of time left, I just added basic login/logout and register function. No password reset or anything else.