feat: 进一步提高密码安全性

This commit is contained in:
手瓜一十雪 2025-09-06 11:42:12 +08:00
parent e406dca7ae
commit e97f3e1283
2 changed files with 9 additions and 9 deletions

View File

@ -13,8 +13,8 @@ import { themeType } from '../types/theme';
const WebUiConfigSchema = Type.Object({
host: Type.String({ default: '0.0.0.0' }),
port: Type.Number({ default: 6099 }),
// napcat+<月份日>,例如 napcat0625
token: Type.String({ default: 'napcat' + (new Date().getMonth() + 1).toString().padStart(2, '0') + new Date().getDate().toString().padStart(2, '0') }),
// napcat+<月份日>,例如 napcat062511
token: Type.String({ default: 'napcat' + (new Date().getMonth() + 1).toString().padStart(2, '0') + new Date().getDate().toString().padStart(2, '0') + new Date().getHours().toString().padStart(2, '0') }),
loginRate: Type.Number({ default: 10 }),
autoLoginAccount: Type.String({ default: '' }),
theme: themeType,