57 Commits

Author SHA1 Message Date
ibratabian17
103d8259b3 feat: Hash user authentication tickets for enhanced security
Implement SHA256 hashing for user authentication tickets before storage. This prevents sensitive tokens from being stored in plain text, significantly improving security.

Changes include:
*   Hashing tickets in `AccountRouteHandler` and `UbiservicesRouteHandler` during profile updates and login flows.
*   Introducing dedicated `updateUserTicket` methods in `AccountRepository` and `AccountService`.
*   Adjusting the `Account` model to handle tickets separately.
*   Adding a new `config` table to the database schema.
2025-07-17 17:52:51 +07:00
Ibra Al Tabian
3ccfb22a03 Scrap chalk for logging 2025-06-30 10:31:58 +07:00
ibratabian17
bb324edee7 Refactor MPD generation for song previews
Update `generateSongdb` to directly use existing `mapPreviewMpd` values if available, falling back to `vp8`.
Rename `generateMPD` to `getMPD` and `getMultiMPD` to accept a `song` object instead of `codename` for better data handling.
This change streamlines MPD retrieval and generation, making it more robust.
2025-06-12 21:12:28 +07:00
ibratabian17
96546a4d6f feat: Improve Account System, Add Personalized Carousel, Improve Plugin Format 2025-06-07 22:41:56 +07:00
ibratabian17
77aee28c95 feat: Add GET /v3/users/:user route handler
Introduces a new GET route handler for `/v3/users/:user` in `UbiservicesRouteHandler.js`. This handler is currently stubbed and sends an empty response.

Also, refactors anonymous function syntax in `AccountRepository.js` to use arrow functions for consistency.
2025-06-02 01:12:23 +07:00
ibratabian17
eee11b0888 refactor: Major refactoring of entire application for enhanced performance and clarity 2025-05-22 21:05:05 +07:00
ibratabian17
8ed992993f Refactor process management in run.js to improve logging and restart functionality 2025-03-21 14:20:19 +07:00
ibratabian17
1ef76927b1 Merge remote-tracking branch 'origin/main' 2025-03-20 21:53:45 +07:00
ibratabian17
ec01f9f059 Add profile update endpoint with authorization and data sanitization 2025-03-20 21:48:45 +07:00
ibratabian17
3f4f7035d0 Add nickname field to user update in CustomAuth login and registration 2025-03-20 21:44:50 +07:00
ibratabian17
56d35bb82f Add validation for Authorization header and improve error handling in profile update 2025-03-20 19:07:33 +07:00
ibratabian17
4c691e3a48 Improve CustomAuth Handler 2024-12-21 23:09:24 +07:00
ibratabian17
7a1c3e96c7 improve updateUser 2024-12-21 22:47:51 +07:00
ibratabian17
f6540675c9 btoa -> atob 2024-12-21 22:29:14 +07:00
ibratabian17
ce2b5acc42 fix account failed verifying 2024-12-21 22:21:00 +07:00
ibratabian17
73c979c392 fix SaveData 2024-12-20 23:26:32 +07:00
ibratabian17
dc3650b4c0 Add Custom Auth Support 2024-12-20 23:23:15 +07:00
ibratabian17
ad765b725f Add url tester 2024-10-22 17:55:26 +07:00
ibratabian17
53b24047e7 Improve Account Ticket gen 2024-10-20 17:04:22 +07:00
ibratabian17
c57d708198 fix getClientIp 2024-10-19 21:18:47 +07:00
ibratabian17
66f54ebbde cache by ip 2024-10-19 20:57:16 +07:00
ibratabian17
9905db0096 Improve DOTW and Leaderboard 2024-10-18 20:45:32 +07:00
ibratabian17
a2308beca2 fix ip resolver 2024-10-12 21:18:00 +07:00
ibratabian17
135e509de8 Update Leaderboard processing system 2024-09-27 20:34:00 +08:00
ibratabian17
b6fcf6d2c5 Move dancer-of-the-week route 2024-09-27 20:11:50 +08:00
ibratabian17
afead15643 Fix Account Memorize and Improve DOTW 2024-09-26 23:00:25 +08:00
ibratabian17
f121968446 Improve Asking Ubi server request 2024-09-25 20:02:55 +08:00
ibratabian17
9aabf27e2b Improve profileId Response 2024-09-25 19:35:28 +08:00
ibratabian17
f44335db49 Fix vulnerability that exposes user ticket 2024-09-24 22:44:28 +08:00
ibratabian17
62e7c2da35 fix user assigning issue 2024-09-24 19:18:50 +08:00
ibratabian17
467b3dd475 make sure the matchedProfileId has proper format 2024-09-24 01:08:26 +08:00
ibratabian17
d50930dd79 Fix Official Server Response 2024-09-23 18:35:07 +08:00
ibratabian17
1c9efa1331 proper account logging 2024-09-23 00:03:27 +08:00
ibratabian17
005902cab3 Use Proper Headers 2024-09-11 22:50:18 +08:00
ibratabian17
de90413efc Generate Fake Session ID For Cracked User 2024-09-11 22:29:34 +08:00
ibratabian17
38c020ef0b Refactor Carousel Code 2024-09-10 23:17:59 +08:00
ibratabian17
b848421eac Rework leaderboard implementation 2024-09-10 23:12:09 +08:00
ibratabian17
85b557c40d Rewrite the songdb library 2024-09-10 00:06:58 +08:00
ibratabian17
ec8bc98d50 Improve Profiles & Leaderboard Function 2024-09-09 22:49:30 +08:00
ibratabian17
b3ca3fc19f Minor Fixbug 2024-07-28 12:11:14 +08:00
ibratabian17
8bcd4e6e03 Add currentOnlinePlayer 2024-07-28 12:06:26 +08:00
ibratabian17
2de99b4e9c Improve User Assigning Profile and Fix Leaderboard Causing recap freezes 2024-07-28 11:52:07 +08:00
ibratabian17
ee294f9755 Fix Routing Issue On JD22 2024-07-07 23:01:27 +08:00
ibratabian17
f599109095 Add profiles caching system 2024-07-07 18:49:11 +08:00
ibratabian17
f0b139ff59 Introduce to modules function! 2024-07-07 18:44:52 +08:00
ibratabian17
2a0878a9c6 Improvised the Playlist feature 2024-07-07 18:25:26 +08:00
ibratabian17
a772612b60 seperate encryption key from settings.json 2024-07-07 16:50:57 +08:00
ibratabian17
ea04f5923d Stop flooding logs 2024-07-07 16:34:55 +08:00
ibratabian17
a49bfde89e Add Layered Data ability 2024-07-01 20:36:20 +08:00
ibratabian17
ea45146684 Improve hmac system and Add encryption support 2024-07-01 17:56:48 +08:00