Conversation
…teps to README, and introduce a security roadmap in TODO.md.
Develop: Recuerda crear una rama para cada PR
Jwt middleware
Added a type guard to ensure the JWT payload is an object before resolving, enhancing token validation safety.
…er control over husky installation
… availability during install
Prettier config
🔧 chore(husky): update pre-commit hook to use lint-staged and clean u…
- Added employee registration endpoint with admin authentication and CSRF protection. - Implemented temporary password generation and JWT token for email verification. - Added middleware to ensure only admins can register employees. - Refactored AuthService and AuthController for new flow. - Added integration tests for employee registration using Vitest and Supertest. - Updated dependencies and scripts for testing.
- Generate temporary password server-side instead of using token from frontend - Fix verification URL to use SITE env variable - Update tests to reflect backend verification changes - Enhance security by preventing token falsification during registration
- Add .env.test and test.db to .dockerignore to prevent test artifacts from being included in builds - Change database volume in docker-compose.dev.yml to use named volume sqlite_data instead of local ./data folder - Minor formatting fixes in docker-compose.dev.yml
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.