refactor: consolidate debug flag and update gitignore

- Rename debugMode to isDebug for consistency across codebase
- Move debug flag check in ValidateTimeStamp to match other validations
- Add database.db to gitignore and remove unused config file
- Update README.md to clarify user registration rules
This commit is contained in:
2026-02-28 15:48:01 +08:00
parent ff62e3e755
commit b46f6dbfc2
8 changed files with 32 additions and 27 deletions
+2 -2
View File
@@ -92,8 +92,7 @@ X-Timestamp: 1704067200000
```json
{
"username": "your_username",
"passwd": "YourPass123!",
"type": "admin"
"passwd": "YourPass123!"
}
```
@@ -119,6 +118,7 @@ X-Timestamp: 1704067200000
}
}
```
> New user only can register as visitor, superuser and admin need to contact the administrator to apply.
---