fix(config): restore 123456 as the default WebUI key
Stop rejecting and auto-rotating the legacy management key so new configs default to 123456 and users can save that value.
This commit is contained in:
1 parent
adb84bbfec
commit
5aff4d8a58
7 files changed
+22
-24
No files matched your search
@@ -760,7 +760,6 @@ export const jaOverrides = {
|
||||
'config.webuiKey.save': 'キーを保存',
|
||||
'config.webuiKey.open': 'WebUI を開く',
|
||||
'config.webuiKey.error.empty': 'WebUI キーを入力してください',
|
||||
'config.webuiKey.error.legacyDefault': '旧版の既定キー 123456 は使用できません',
|
||||
'config.webuiKey.error.tooLong': 'WebUI キーは 512 文字以内で入力してください',
|
||||
'config.webuiKey.error.invalid': 'WebUI キーに制御文字は使用できません',
|
||||
'config.webuiKey.error.mismatch': '入力した WebUI キーが一致しません',
|
||||
|
||||
@@ -791,7 +791,6 @@ export const en: Record<MessageKey, string> = {
|
||||
'config.webuiKey.save': 'Save key',
|
||||
'config.webuiKey.open': 'Open WebUI',
|
||||
'config.webuiKey.error.empty': 'The WebUI key cannot be empty',
|
||||
'config.webuiKey.error.legacyDefault': 'The legacy default key 123456 is no longer allowed',
|
||||
'config.webuiKey.error.tooLong': 'The WebUI key cannot exceed 512 characters',
|
||||
'config.webuiKey.error.invalid': 'The WebUI key cannot contain control characters',
|
||||
'config.webuiKey.error.mismatch': 'The WebUI keys do not match',
|
||||
|
||||
@@ -790,7 +790,6 @@ export const zhCN = {
|
||||
'config.webuiKey.save': '保存密钥',
|
||||
'config.webuiKey.open': '打开 WebUI',
|
||||
'config.webuiKey.error.empty': 'WebUI 密钥不能为空',
|
||||
'config.webuiKey.error.legacyDefault': '不能继续使用旧版默认密钥 123456',
|
||||
'config.webuiKey.error.tooLong': 'WebUI 密钥不能超过 512 个字符',
|
||||
'config.webuiKey.error.invalid': 'WebUI 密钥不能包含控制字符',
|
||||
'config.webuiKey.error.mismatch': '两次输入的 WebUI 密钥不一致',
|
||||
|
||||
@@ -438,10 +438,6 @@ export function ConfigPanelPage() {
|
||||
setManagementSecretError(t('config.webuiKey.error.empty'));
|
||||
return;
|
||||
}
|
||||
if (secretKey === '123456') {
|
||||
setManagementSecretError(t('config.webuiKey.error.legacyDefault'));
|
||||
return;
|
||||
}
|
||||
if (secretKey.length > 512) {
|
||||
setManagementSecretError(t('config.webuiKey.error.tooLong'));
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user