Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement User Auth and Sessions #93

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Implement User Auth and Sessions #93

wants to merge 5 commits into from

Conversation

skyeslattery
Copy link
Contributor

@skyeslattery skyeslattery commented Nov 13, 2024

Overview

Make new login route using user_session app with one-to-many between users and user_sessions to prevent being automatically logged out every 24 hours.

Changes Made

Added new login/logout routes in user/views using OAuth. Added user_sessions to track where users are logged in and to keep them logged in. Changed favorite_items to store item names instead of ids to allow different items to be treated the same across eateries. Also fixed minor bug in populate_eatery relating to error handling.

Test Coverage

Tested locally

Next Steps (delete if not applicable)

Needs to be joined with frontend to test login/logout

@@ -1,4 +1,5 @@
from django.urls import path, include
from django.views.decorators.http import require_POST
Copy link
Contributor

@Aayush-Agnihotri Aayush-Agnihotri Nov 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this import used anywhere else? If not we can just delete it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants