-
Notifications
You must be signed in to change notification settings - Fork 0
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
Develop #23
Merged
Merged
Develop #23
Conversation
This file contains 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
feat: implement CRUD user's address
fix: first address must be default
Add the Product entity class with SKU, name, description, category, images, and variations properties.
Feature/product entity design
- Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users.
feat(auth): Add Google Login integration
- Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores.
Insert Product API
- Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items.
feat(cart): Implement shopping cart feature
- Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18.
fix(auth): Correct security authentication logic
- Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18.
* Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management
Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions
thongdanghoang
added a commit
that referenced
this pull request
Nov 12, 2023
* feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address.
thongdanghoang
added a commit
that referenced
this pull request
Nov 12, 2023
* feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * Develop (#25) * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address.
thongdanghoang
added a commit
that referenced
this pull request
Nov 12, 2023
* Develop (#27) * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * Develop (#25) * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * feat: add update product api to update product function
thongdanghoang
added a commit
that referenced
this pull request
Mar 23, 2024
* feat: user authentication with httpBasic * feat: Enable login via form and implement authentication APIs * update: Configure form-based login and add remove httpBasic * test: write some api to test authenticate and authorize * refactor: Reorganize user login and user management * update: adjust port mapping on localhost * feat: Add custom success and failure handlers * feat: add register api * feat: Implement user lockout after failed login attempts * feat: Implement Forgot Password with Email OTP - Added a "Forgot Password" feature to allow users to reset their passwords. - Users receive a one-time password (OTP) via email to verify their identity. - Implemented email OTP generation and verification logic. - Users can set a new password after successful OTP verification. * refactor: rename and change location * fix: Add missing config dependency in pom.xml for Forgot Password with Email OTP * refactor(user-profile): Change gender field data type from boolean to enum * feat(exception-handling): Add handling for invalid JSON format in GlobalExceptionHandler - Enhanced the GlobalExceptionHandler to handle invalid JSON format errors. - Added a custom exception handler to capture and respond to invalid JSON requests with appropriate error messages. * fix: Add missing file email.html (email's content) for Forgot Password with Email OTP * config: ignore script environment file * security: Remove sensitive credentials from the codebase * reformat: use Abstract Controller to config ExceptionHandler * reformat: slit checkPassword method to re-use code * config: initial logging basic config * feat: Enable login via form and implement authentication APIs * update: Configure form-based login and add remove httpBasic * test: write some api to test authenticate and authorize * refactor: Reorganize user login and user management * update: adjust port mapping on localhost * feat: Add custom success and failure handlers * feat: add register api * feat: Implement user lockout after failed login attempts * feat: Implement Forgot Password with Email OTP - Added a "Forgot Password" feature to allow users to reset their passwords. - Users receive a one-time password (OTP) via email to verify their identity. - Implemented email OTP generation and verification logic. - Users can set a new password after successful OTP verification. * refactor: rename and change location * fix: Add missing config dependency in pom.xml for Forgot Password with Email OTP * refactor(user-profile): Change gender field data type from boolean to enum * feat(exception-handling): Add handling for invalid JSON format in GlobalExceptionHandler - Enhanced the GlobalExceptionHandler to handle invalid JSON format errors. - Added a custom exception handler to capture and respond to invalid JSON requests with appropriate error messages. * fix: Add missing file email.html (email's content) for Forgot Password with Email OTP * config: ignore script environment file * security: Remove sensitive credentials from the codebase * reformat: use Abstract Controller to config ExceptionHandler * reformat: slit checkPassword method to re-use code * config: initial logging basic config * feat: get authenticated user profile and update basic user's information * feat: get authenticated user profile and update basic user's information * security: remove credentials information * security: use environment variables to hide sensitive information * refactor: rename variables * security: hide sensitive data * config: turn off logging file * security: delete sensitive data * fix: catch email not found exception * config: docker build script * Develop (#7) * feat: get authenticated user profile and update basic user's information * security: remove credentials information * security: use environment variables to hide sensitive information * refactor: rename variables * security: hide sensitive data * config: turn off logging file * security: delete sensitive data * fix: catch email not found exception * config: docker build script * BREAKING CHANGE: should not save user payments because security and e-wallet make payment easily * feat(auth): include username in successful login response * relax(auth): Reduce password complexity requirements - Lowered minimum password length to 6 characters. - Removed the requirement for special characters, uppercase and lowercase. - Made password validation more permissive. * relax(auth): Reduce password complexity requirements - Lowered minimum password length to 6 characters. - Removed the requirement for special characters, uppercase and uppercase. - Made password validation more permissive. * config: adjust cookie name - more meaning cookie name * feat(auth): include username in successful login response * feat(security): Customize cookie configuration for SameSite=None Customized the cookie configuration to set SameSite=None, ensuring cross-site cookie functionality for improved security. BREAKING CHANGES: - Clients relying on the old cookie configuration may need to update their behavior to handle SameSite=None. * feat(auth): Implement email verification and forgot password by email Implemented email verification for new user registrations and added the "Forgot Password" feature, which sends reset instructions via email. BREAKING CHANGES: - None * fix(database): Resolve concurrent update issue in user profile updates Fixes an issue where multiple users concurrently updating their profiles could lead to data inconsistency in the database. Implemented optimistic locking to ensure that each update is performed atomically, preventing conflicts. * docs(api): Add OpenAPI documentation for user management endpoints Added OpenAPI documentation using Swagger for the user management endpoints. Documented request and response models, provided descriptions for each endpoint, and included sample usage scenarios. - Added Swagger UI for interactive API documentation. - Annotated controller methods with Swagger annotations. - Defined request and response models for user-related operations. * security: Update Twilio credentials and hide config file This commit updates the Twilio API credentials in the `twilio.config` file and adds the file to the `.gitignore` to prevent it from being tracked by Git. This change is necessary to protect sensitive information. * security: Set SameSite attribute to 'None' as the default for cookies This commit updates the configuration to set the SameSite attribute to 'None' by default for cookies. This change is necessary to allow cross-site requests for a better user experience. * feat: Add Phone OTP functionality for password verification and recovery This commit introduces the ability for users to verify their identity and reset their password using a one-time password sent to their registered phone number. It includes API endpoints, database schema changes, and UI enhancements for this feature. * fix: handle JSON data in the request body instead of request params This commit involves changes to the server-side code, such as controllers or middleware, to parse and handle incoming requests with data provided in JSON format within the request body. * feat: implement CRUD user's address * fix: first address must be default * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * Develop (#25) * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * Feature/products (#28) * Develop (#27) * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * Develop (#25) * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * Develop (#23) * feat(entity): add Product entity Add the Product entity class with SKU, name, description, category, images, and variations properties. * feat: view products and product detail * config: install querydsl to project * feat(auth): Add Google Login integration - Implemented Google Login functionality for user authentication. - Added necessary components and libraries for Google authentication. - Configured OAuth settings and credentials. - Integrated the Google Login button into the user interface. This commit introduces Google Login as an authentication option for users. * feat(api): Implement shop owner product addition APIs - Added API endpoints to allow shop owners to add products. - Created corresponding database models and controllers. - Implemented input validation and access control for shop owners. This commit introduces new APIs for shop owners to add products to their stores. * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * Feature/order (#22) * Develop (#21) * feat(cart): Implement shopping cart feature - Created the shopping cart component and functionality. - Added the ability to add, remove, and update items in the cart. - Integrated cart data with the backend API. - Updated UI to display cart contents and total. This commit introduces the shopping cart feature, allowing users to manage their cart items. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Updated the conditional statement from logical AND (&&) to logical OR (||). Closes #18 This commit addresses a security issue by ensuring that user access is granted if the user is enabled or not currently disabled, and it closes issue #18. * fix(auth): Correct security authentication logic - Fixed the security authentication logic to allow access when the user is either enabled or not disabled. - Redo issue #18. * feat: Implement order processing in the e-commerce system Details: - Added Order entity to the data model - Implemented order creation and validation logic - Integrated order processing with existing product and customer services - Updated API endpoints for order management * chore: Configure authorization for order endpoints Details: - Implemented role-based access control for order creation and modification - Configured method-level security using Spring Security annotations - Added custom access denied handler for unauthorized requests - Updated Swagger documentation to reflect new access restrictions * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * feat(user/address): Add getDefaultAddress functionality Implement the getDefaultAddress service method for retrieving the default user address. * feat: add update product api to update product function * fix(config): Resolve configuration issues * feat: add profile avatar * feat: add clear cart * feat(admin-portal): Add user management functionality Details: - Implemented user management page in the admin portal - Added functionality to view, edit, and delete user profiles - Excluded the ability to modify the admin user to enhance security - Integrated backend API calls for user management * chore: stupid when merging * feat: order address, send confirmation email, authorization for shop owner * feat: improve login process by status code * feat: product report and statistic * feat: product report and statistic * feat: check quantity in stock with cart * feat: adjust email name * React (#29) * demo * edit all react FE project * test demo * create folder UserProfilePage * Change backgound image * Customize Login and Register page * change file userSlide.ts * change file register.tsx * create folder services to code handle APAI for object * Add handle login page * Add react-bootstrap for more support * custome a little RegisterPage.tsx * Connect to api login * complete Register , create folder reset pass , custom UI reset pass , header * UI profile user custome , add route for profile page * change let to const * problem API cookie * end sprint 1 * end a part of module update profile user * edit react-router a little * Add react-otp-input dependentcies * Update reset password page * Fix show wrong page * end module verify-email * thai test pull project * add footer * Fix unexpect behavior when run this project Current commit has change package-lock.json Fixed by regenerate this file * feature: update reset password page * add lib react-slick antd-design * custome file * create slider * slcik * update homepage * switch case slider * abc * feature: add product page * fixing .gitignore * address shipping 70% * create folder data and clothes.json * update homepage and product detail * update * file json clothes end * add folder adminPage and related component * Refactor code product page for more responsive * change domain api * mock category * update cardProduct * update header * custome all home page , component card , slider , i'm tired * tired * custome address ship * update productdetail * update productdetail * update * Update stype for product page * ddđ * Add product API NOTE: problem with UI at home page * order folder content * update product order * complete module add to cart * mock categories data * add button and component for filter product page * reduce code boilerplate in product filter page * update payment * payment * connect to api filter and sorting in product page * payment * admin add new clothes , page payment * add link to product page in home page * tired * edit a little address ship * payment * add category API and link to product detail * connect categories API to home page component * 90% end add new clothes * add search product feature * sss * add not found product, filter category home page and use product page to search instead * UX/UI * fix forgot-password page * update a little * cấu hình myorderpage * update order and UI * update UI * update ui * complete cart module * small fix and add link to navbar * limit search result * complete checkout order * fix header * fix bug about checkout * abc * update a littel * update price origin * thái cc * update URL API * create folder change password * update reset password * change password component * complete upload image profile * vietnamese * admin_dashboard * ssss * edit very much * a * clear password on success * barchat * edit a little * UX/UI * UX/UI * update barchart * sss * edit a little * update link home page to product page * edit all * fix * fix OTP page * fix error success * not found clothe * complete a little * update not-found in product filter page * dashboard * complete update status * fix login and filter pagination page * complete all * dashboard * fix * fix * complete all * update not found search * sd * fix update password * fix * edit a little --------- Co-authored-by: nghiaha <nghiaha.22022003@gmail.com> Co-authored-by: KayHuynhKaiChou <huynhgiaquy123@gmail.com> Co-authored-by: thaintd <114746768+thaintd@users.noreply.github.com> Co-authored-by: unknown <raitoakpro@gmail.com> * refactor: seperate auth server from backend * chore: rename directory * chore: update gitignore --------- Co-authored-by: nghiaha <nghiaha.22022003@gmail.com> Co-authored-by: KayHuynhKaiChou <huynhgiaquy123@gmail.com> Co-authored-by: thaintd <114746768+thaintd@users.noreply.github.com> Co-authored-by: unknown <raitoakpro@gmail.com>
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.