amusselm / rvgs_gamelist

A web app to keep track of the Reno Video Game Symphoy's Game Quest
2 stars 0 forks source link

Create User Login Page and functionality. #16

Closed amusselm closed 9 years ago

amusselm commented 9 years ago

Users must be able to log in.

I've already implemented the link to the login page, and something that would display whatever account that the user is logged into.

amusselm commented 9 years ago

Okay, I've got this partway implemented. I've added a login form template and set it to use the django.auth default view method. I've got to modify the login template so that "next page" attribute is set to someplace sane, like the user's profile page.

I've got logout working, sortof. I need to figure out how to get it to use the custom template and to redirect to the right place.

Longer term, we might consider the allauth plugin, so that we can allow users to register login with their Facebook, Google, Reddit... etc. accounts. See here for an example of that. That said, I doubt I'll have that working for the beta run.

amusselm commented 9 years ago

Alright, somehow the login next page started working properly while I wasn't looking at it. And I added a redirect to direct the newly logged in user to their profile page.

Logout behavior is still broken. I haven't decided to rather or not to push as is and fix it later or not.

amusselm commented 9 years ago

Turns out the fix is really easy. It's all described in [this bit of Django] documentation. Standby for commit.

amusselm commented 9 years ago

Closed: https://github.com/amusselm/rvgs_gamelist/commit/67ba5206589b26b0390a43953b89938c88d1f98e