-
Notifications
You must be signed in to change notification settings - Fork 4
Kavindu sd #79
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
Merged
Kavindu sd #79
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0c7b7bf
feat: add avatar component for user profile display in dashboard
shammy911 ae1ed87
feat: refactor authentication components and improve user profile han…
shammy911 7900d0a
Initial plan
Copilot bb116ae
Update components/dashboard/dashboard-client.tsx
shammy911 230590d
Update components/dashboard/dashboard-client.tsx
shammy911 466fb52
fix: prevent client-provided email spoofing in JWT callback
Copilot b887cd0
Update components/contact/FeedbackPopup.tsx
shammy911 9317173
Update components/dashboard/dashboard-client.tsx
shammy911 22329b8
Initial plan
Copilot bd679f4
Initial plan
Copilot e121ed0
security: remove console.log that exposed plaintext credentials in ad…
Copilot 0e7bc76
Initial plan
Copilot 84683bc
fix: enable NextAuth debug only in development environment
Copilot b32b6bf
fix: use session.user.id instead of email for profile DB lookups
Copilot 96f1791
Initial plan
Copilot f6c3e5c
fix(accessibility): add aria-label to ChatBot chat input
Copilot af8c160
Update app/layout.tsx
shammy911 b03410c
Merge pull request #80 from G12CSC/copilot/sub-pr-79
shammy911 f8cb8bc
Merge pull request #82 from G12CSC/copilot/sub-pr-79-another-one
shammy911 503cb55
Merge pull request #84 from G12CSC/copilot/sub-pr-79-one-more-time
shammy911 fccc47c
Merge pull request #85 from G12CSC/copilot/sub-pr-79-please-work
shammy911 1ffa40b
Merge pull request #83 from G12CSC/copilot/sub-pr-79-yet-again
shammy911 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This endpoint uses
session.user.emailas the identifier forfindUnique/update. If session fields can be influenced (e.g., viasession.update(...)), this increases the risk of cross-user access. Prefer using the immutablesession.user.id(already set in the NextAuth session callback) for lookups/updates instead of email.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback