Skip to content

feat: create a sessions table to authenticate logged in users#22

Merged
BaoNguyen09 merged 3 commits intomasterfrom
19-create-a-sessions-table-to-authenticate-logged-in-users
May 7, 2025
Merged

feat: create a sessions table to authenticate logged in users#22
BaoNguyen09 merged 3 commits intomasterfrom
19-create-a-sessions-table-to-authenticate-logged-in-users

Conversation

@BaoNguyen09
Copy link
Owner

Describe your changes (Include screenshots if neccessary)

  • Create a new table called sessions to track authenticated user who logged in
  • Upgrade get_cookie() method to get_authenticated_user() that returns None if the username field in cookie isn't found in sessions table

Issue ticket number and link

Closes #19

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

@BaoNguyen09 BaoNguyen09 linked an issue May 7, 2025 that may be closed by this pull request
@BaoNguyen09 BaoNguyen09 merged commit 95d9738 into master May 7, 2025
1 check passed
@BaoNguyen09 BaoNguyen09 deleted the 19-create-a-sessions-table-to-authenticate-logged-in-users branch May 7, 2025 00:18
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.

Create a sessions table to authenticate logged in users

1 participant