Commit Graph
78 Commits
Author SHA1 Message Date
azures04 66db52e7c8 Update server.js 2026-01-19 20:37:12 +01:00
azures04 21fd655a1f Update register.js 2026-01-19 20:35:58 +01:00
azures04 074a5dc04b Update register.js 2026-01-19 20:35:19 +01:00
azures04 6cf822e603 Update register.js 2026-01-19 20:34:51 +01:00
azures04 535c21b971 register 2026-01-19 20:34:07 +01:00
azures04 44a9ff12b1 register 2026-01-19 20:31:13 +01:00
azures04 f5df40f264 Update register.html 2026-01-19 20:28:56 +01:00
azures04 caa318f2c7 register 2026-01-19 20:26:58 +01:00
azures04 d6ac0fd8b4 r 2026-01-19 20:26:05 +01:00
azures04 6666025726 Update register.html 2026-01-19 20:24:30 +01:00
azures04 57aeb47ed1 Update register.html 2026-01-19 20:19:19 +01:00
azures04 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
azures04 c96e728228 fixed cape upload 2026-01-18 23:47:29 +01:00
azures04 308c3b5479 fixed cape upload 2026-01-18 23:34:40 +01:00
azures04 086468405a fixed cape upload 2026-01-18 23:32:32 +01:00
azures04 0b8ab9f194 Update databaseGlobals.js 2026-01-18 23:18:58 +01:00
azures04 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
azures04 0049ae8ec6 Update server.js 2026-01-18 23:10:31 +01:00
azures04 9469822ef9 Update [hash].js 2026-01-18 23:10:13 +01:00
azures04 99598f2b7a Update [hash].js 2026-01-18 23:06:40 +01:00
azures04 85ba96cb6f Update [hash].js 2026-01-18 23:05:59 +01:00
azures04 ac6eca3f31 Update [hash].js 2026-01-18 23:03:05 +01:00
azures04 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
azures04 adddbadbf3 Update [hash].js 2026-01-18 22:58:43 +01:00
azures04 b15595ecb1 Update [hash].js 2026-01-18 22:54:03 +01:00
azures04 aacfca136c Update databaseGlobals.js 2026-01-18 21:52:01 +01:00
azures04 9ac904ba08 Update capes.js 2026-01-18 21:39:35 +01:00
azures04 fab7066ee3 Update [hash].js 2026-01-18 21:38:39 +01:00
azures04 86490ebd2d Update [hash].js 2026-01-18 21:35:55 +01:00
azures04 dd04b2014a Update server.js 2026-01-18 21:30:42 +01:00
azures04 83d46425b3 Update adminService.js 2026-01-18 21:26:40 +01:00
azures04 7eac539598 Update adminService.js 2026-01-18 21:25:40 +01:00
azures04 9a6b119d37 Update adminService.js 2026-01-18 21:24:35 +01:00
azures04 d8318f874f Update adminService.js 2026-01-18 21:23:56 +01:00
azures04 487bd08141 Update adminService.js 2026-01-18 21:21:42 +01:00
azures04 30a0ac3927 Update adminService.js 2026-01-18 21:19:32 +01:00
azures04 21cf0f49e6 Update server.js 2026-01-18 21:18:50 +01:00
azures04 a31be145cc Update adminService.js 2026-01-18 21:04:08 +01:00
azures04 0e0f176e50 Update login.js 2026-01-18 21:01:46 +01:00
azures04 86349bcf4f Add admin login and password change endpoints
Introduces POST /login and PATCH /password routes for admin authentication and password management. Adds corresponding schema validation for login and password change, enforces stricter password requirements, and updates adminService with JWT-based profile retrieval and improved token handling.
2026-01-18 19:38:24 +01:00
azures04 d590ecce6d Fixed '_' char in column name in admin repo 2026-01-18 19:04:24 +01:00
azures04 617e60cf75 Fix admin permissions table name and seed default permissions
Corrects the table name from 'apiAdministrators_permissions' to 'apiAdministratorsPermissions' in adminRepository.js for consistency with the database schema. Also seeds default permissions into 'apiAdministratorsPermissionsList' during database setup.
2026-01-18 18:55:22 +01:00
azures04 f1a482c58f Moved cosmectics schemas to valid location 2026-01-18 18:27:12 +01:00
azures04 69ad2c8f83 Update server.js 2026-01-18 18:05:23 +01:00
azures04 71627c7041 Centralize and standardize database error handling
Introduced a new handleDBError utility in modules/utils.js to centralize database error logging and throwing. Refactored all repositories to use this utility, replacing repetitive error handling and logger calls with a single function call for improved maintainability and consistency.
2026-01-18 18:04:10 +01:00
azures04 88f8ee57e1 Update userRepository.js 2026-01-18 15:45:22 +01:00
azures04 bfc98243d0 Update databaseGlobals.js 2026-01-18 15:42:24 +01:00
azures04 c6afafca2a Refactor cape selection logic and remove trigger
Removed the 'unique_active_cape' database trigger and updated the showCape function to manually ensure only one cape is selected per player. This change centralizes the selection logic in application code for better maintainability and error handling.
2026-01-18 15:40:00 +01:00
azures04 b6b7cf7fe0 Update sessionsService.js 2026-01-14 23:56:31 +01:00
azures04 ffa23e35b0 Update .env.example 2026-01-11 21:15:40 +01:00