105 Commits

Author SHA1 Message Date
e242d78864 Update oauth2Service.js 2026-01-24 22:22:33 +01:00
33d54e655a Create success.html 2026-01-24 21:48:14 +01:00
39a566a2f5 Update [name].js 2026-01-24 03:32:36 +01:00
66b3268f8e Update userService.js 2026-01-24 01:42:30 +01:00
9db4d62d78 Update [name].js 2026-01-24 01:37:08 +01:00
492f012519 Update active.js 2026-01-24 00:57:58 +01:00
c5ef3d8181 Update active.js 2026-01-24 00:46:58 +01:00
bf17261fdf Update active.js 2026-01-24 00:46:11 +01:00
bb7b2328ab Update server.js 2026-01-24 00:14:05 +01:00
b6ad724602 Update userRepository.js 2026-01-23 23:13:03 +01:00
dbcb436c9f Refactor skin selection logic and remove DB trigger
Removed the 'unique_active_skin' database trigger from setupDatabase and updated setSkin in userRepository to handle skin selection logic in application code. This change centralizes the logic for ensuring only one active skin per user, improving maintainability and error handling.
2026-01-23 23:07:10 +01:00
aea0b7b016 Delete skins.js 2026-01-23 22:58:02 +01:00
11f930c3d8 Update skins.js 2026-01-23 22:56:37 +01:00
b82c06165a Update skins.js 2026-01-23 22:54:54 +01:00
48ea9f708b Expand skin upload schema and simplify texture storage
Updated the skin upload schema to accept both JSON and multipart/form-data content types, and to allow requests without a URL. Simplified the texture storage path in userService.js by removing subdirectory partitioning based on hash.
2026-01-23 22:52:00 +01:00
3f64c2c897 Update userService.js 2026-01-23 21:49:47 +01:00
c1dbfc58aa Update userService.js 2026-01-23 21:48:45 +01:00
65f2f26325 Update userService.js 2026-01-23 21:42:18 +01:00
f9270c1f9c Update userService.js 2026-01-23 21:41:32 +01:00
6f3231aee7 Update userService.js 2026-01-23 21:40:06 +01:00
4a0fcf65f3 Update userRepository.js 2026-01-23 21:38:54 +01:00
cc8e581cbe Update userRepository.js 2026-01-23 21:38:21 +01:00
b4ae5fa4d9 Update index.js 2026-01-23 21:33:13 +01:00
7018e8c497 Update userRepository.js 2026-01-23 21:30:41 +01:00
8e0a1ab673 Update userRepository.js 2026-01-23 21:29:37 +01:00
e089957db7 Update userRepository.js 2026-01-23 21:28:54 +01:00
c8812c5153 Add getSkins and getCapes methods to user modules
Introduces getSkins and getCapes functions in both userRepository and userService to retrieve player skins and capes from the database. These methods return structured data for use in higher-level application logic.
2026-01-23 21:27:45 +01:00
66db52e7c8 Update server.js 2026-01-19 20:37:12 +01:00
21fd655a1f Update register.js 2026-01-19 20:35:58 +01:00
074a5dc04b Update register.js 2026-01-19 20:35:19 +01:00
6cf822e603 Update register.js 2026-01-19 20:34:51 +01:00
535c21b971 register 2026-01-19 20:34:07 +01:00
44a9ff12b1 register 2026-01-19 20:31:13 +01:00
f5df40f264 Update register.html 2026-01-19 20:28:56 +01:00
caa318f2c7 register 2026-01-19 20:26:58 +01:00
d6ac0fd8b4 r 2026-01-19 20:26:05 +01:00
6666025726 Update register.html 2026-01-19 20:24:30 +01:00
57aeb47ed1 Update register.html 2026-01-19 20:19:19 +01:00
4975f7e191 Add static registration page and static file serving
Added a new registration HTML page under data/static/register.html and introduced a static file serving route in routes/static.js. Minor adjustments were made to authRepository.js and userRepository.js to update module imports. This enables serving static assets and provides a registration UI.
2026-01-19 02:47:55 +01:00
c96e728228 fixed cape upload 2026-01-18 23:47:29 +01:00
308c3b5479 fixed cape upload 2026-01-18 23:34:40 +01:00
086468405a fixed cape upload 2026-01-18 23:32:32 +01:00
0b8ab9f194 Update databaseGlobals.js 2026-01-18 23:18:58 +01:00
01e0b94d35 Add composite primary key to player_capes and update messages
Added a composite primary key (playerUuid, assetHash) to the player_capes table for better data integrity. Updated userRepository.js to use English messages for cape assignment and removal operations.
2026-01-18 23:16:11 +01:00
0049ae8ec6 Update server.js 2026-01-18 23:10:31 +01:00
9469822ef9 Update [hash].js 2026-01-18 23:10:13 +01:00
99598f2b7a Update [hash].js 2026-01-18 23:06:40 +01:00
85ba96cb6f Update [hash].js 2026-01-18 23:05:59 +01:00
ac6eca3f31 Update [hash].js 2026-01-18 23:03:05 +01:00
53e58bdb30 Log header validation result in server.js
Added a console.log statement to output the result of header validation in the request handler. Also fixed a minor formatting issue in the cape texture schema file.
2026-01-18 23:00:59 +01:00