Merged
Conversation
…e in the learning roadmap, enhance server initialization with user context handling, and add user context management in the model for improved user data access in requests.
…rs, routes, and DTOs, to streamline the codebase and improve maintainability.
- Introduced a new 'role' field in the User model to support role-based access control (RBAC). - Updated database schema with migrations to add the 'role' column and associated constraints. - Enhanced user-related queries and services to handle the new 'role' attribute. - Implemented middleware for role verification, including admin and moderator checks. - Added a new admin route to the server for admin-specific actions, ensuring proper authorization checks.
…gement - Introduced a 'Role' field in TokenParams and Payload structures to support role-based access control. - Updated the CreateToken function to include the new role attribute in the generated JWT token.
- Introduced a new RegisterInput struct for user registration, including fields for email, username, password, confirm password, and role. - Implemented the Register handler to process user registration requests, including error handling for duplicate email and username. - Updated routing to include a new endpoint for user registration. - Added password strength validation to enhance security during user creation.
…wnership implementation, password strength validation, and adherence to OWASP security best practices.
Owner
Author
|
owasp |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.