Justin Lin
c7e6d31b9c
feat: connect frontend terminal to terminal service
...
fix: use ReconnectWebSocket to make the connection more stable
fix: typescript error on importing css in vue
2025-05-05 19:55:35 +08:00
Justin Lin
ccbc4ff4b0
feat(rate-limiting): implement rate limiting for login attempts and enhance configuration
...
- Added environment variables for `RATE_LIMIT_MAX_FAILED_ATTEMPTS` and `RATE_LIMIT_LOCKOUT_TIME`
- Integrated rate limiting into the login process with a maximum of 5 failed attempts
- Refactored login attempt recording into the `authRouter`
- Removed deprecated `recordLogin` middleware and adjusted related logic
2025-04-27 16:29:03 +08:00
Vincent23412
af2f1ef707
feat(auth): add LoginAttempt schema and record login attempts with failure rate limit
...
- Added `LoginAttempt` Mongoose schema to store login history
- Integrated login attempt recording into login flow (success/failure)
- Created `rateLimitByAccount` middleware to block login if 10 failed attempts in 10 minutes
2025-04-27 15:57:34 +08:00
Justin Lin
253564376d
fix: analytics type errors
2025-04-26 13:10:48 +08:00
Justin Lin
87b8ca5d04
wip: replace packages with pure files
2025-04-24 23:20:40 +08:00
Justin Lin
2d95ca382f
wip: integrate filegraph into session
2025-04-24 22:05:10 +08:00
Justin Lin
cdd22634e0
refactor: replace "folder" with "directory" across file handling components and tests
2025-04-24 21:24:55 +08:00
Justin Lin
1616f62755
wip: migrate backend to new game package
2025-04-21 22:40:11 +08:00
Justin Lin
6043226142
wip: migrating game handler
2025-04-18 14:27:36 +08:00
Justin Lin
423548804a
feat: migreate get user profile to trpc
2025-04-16 16:40:03 +08:00
wancat
198dcae3f8
feat: add isGuest field in user model
2024-06-17 19:50:58 +08:00
wancat
33a1a110e8
feat: use project references to build dependencies efficiently
2024-04-05 22:42:02 +08:00
wancat
039da53bbe
feat: send status to the frontend
2024-02-29 10:54:53 +08:00
wancat
88ee8f2cc3
feat: send response to frontend
2024-02-29 10:54:53 +08:00
wancat
4c421b4cb3
refactor: game
2024-02-19 23:13:37 +08:00
wancat
4ab3096fa5
refactor: fix file condition checks
2024-02-19 18:35:39 +08:00
wancat
64215d3ef1
refactor: container
2024-02-19 18:23:52 +08:00
wancat
9dc0b43737
add types to models
2024-02-19 18:05:01 +08:00
wancat
640d6b58c5
fix ts error
2024-02-07 10:41:46 +08:00
wancat
ee03b9999e
refactor models to typescript
2024-02-07 10:20:19 +08:00
wancat
19cd66475c
add building scripts
2024-02-05 12:33:05 +08:00
wancat
78966d351f
change to use esm
2024-01-30 09:06:41 +08:00
wancat
eb231e4056
Remove project references and add build:watch all
2024-01-29 13:26:41 +08:00
wancat
30aefb47f9
feat: setup project reference
2024-01-29 12:42:50 +08:00
Lin, Hung-Shin
557af91d4b
feat: change to use commonjs output
2024-01-29 12:42:50 +08:00
Chen, Tai-Lin
ceb9416fab
update: mongoose version
2023-12-13 15:05:46 +08:00
Lin, Hung-Shin
ebd81f7cb4
fix: set content in response to be required
2023-11-26 22:36:10 +08:00
Lin, Hung-Shin
bb968706ad
feat: refactor quest models
...
+ separate stage and exception
+ reuse commandResponder
2023-11-26 18:29:52 +08:00
Lin, Hung-Shin
2e1fe369a4
feat: default response to dialogue and spoken by Ada
2023-11-22 12:14:04 +08:00
Lin, Hung-Shin
3cebcddc91
fix: expiryCheck error handling
2023-11-22 11:26:03 +08:00
Lin, Hung-Shin
66ce015f0e
feat: add exceptions to stage
2023-11-21 14:27:43 +08:00
Lin, Hung-Shin
36f53da08a
feat: make hints a group in one stage
2023-11-21 11:55:32 +08:00
wancat
81581c4635
BREAKING: change user social login schema
2023-11-18 16:29:37 +08:00
wancat
8bbd5da513
feat: load create session by quest image
2023-11-16 19:48:22 +08:00
wancat
1af85651b8
fix: enhance error handling for frontend session
2023-11-14 10:45:24 +08:00
wancat
45f12acbd9
feat: add UserProfile collection, create on login
...
* add progress
2023-11-14 10:44:52 +08:00
Lin, Hung-Shin
fac91e0f10
feat: update quest and user schema
...
* add requirements in quest
* add progress in user
2023-11-14 10:44:52 +08:00
wancat
96678a45c3
feat: remove $ from condition field name
2023-10-29 17:42:31 +08:00
wancat
aec0cf84ad
feat: include complete stage name in command
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin
625c1a80da
feat: able to test files
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin
b7ecfe3980
feat: implement $not and $or condition
2023-10-29 17:41:38 +08:00
Lin, Hung-Shin
2f64175df2
feat: update quest schema
...
* files
* boolean operator
2023-10-29 17:41:38 +08:00
wancat
20927fe8aa
feat: docker setup & deployment
2023-10-14 19:43:13 +08:00
wancat
08eaa550a0
fix: rethrowing connectDB error
2023-10-14 15:54:56 +08:00
wancat
46071d8830
fix: remove sensative logs
2023-10-14 15:52:02 +08:00
wancat
cc9040038d
fix: change connect db error handling
2023-10-14 15:49:13 +08:00
wancat
d3dd12a547
feat: add Timestamps to User model
2023-10-14 15:42:39 +08:00
wancat
50bf514805
feat: separate db models from server
2023-10-14 15:34:46 +08:00