Skip to content

Fix duplicate project names for the same user#139

Open
mohab-elshamy wants to merge 1 commit intosoft-eng-practicum:developfrom
mohab-elshamy:fix/duplicate-project-check
Open

Fix duplicate project names for the same user#139
mohab-elshamy wants to merge 1 commit intosoft-eng-practicum:developfrom
mohab-elshamy:fix/duplicate-project-check

Conversation

@mohab-elshamy
Copy link
Copy Markdown
Contributor

Fixed duplicate project creation for the same user.
CreateProject was using formdata.UserID instead of the authenticated user ID from JWT claims. Since the frontend does not send UserID in the create request, the duplicate check was bypassed in practice. The check now uses the server-side authenticated user ID, and the frontend displays the conflict message.

Before After

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.

1 participant