fix(auth): simplify password reminder copy

This commit is contained in:
yibaiba committed 2026-08-14 18:10:35 +08:00
1 parent 17accb5d59
commit 87f3b678a5
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ async function shouldOpenPasswordSettings(status: PasswordCredentialStatus): Pro
}
try {
await ElMessageBox.confirm(
'当前密码仍是初始明文凭证或强度不足。建议立即修改;新密码会以 bcrypt 哈希写入 config.yaml。',
'当前密码仍是初始明文凭证或强度不足。建议立即修改。',
'请修改登录密码',
{ confirmButtonText: '立即修改', cancelButtonText: '稍后处理', closeOnClickModal: false, type: 'warning' }
)
+2 -1
View File
@@ -14,7 +14,8 @@ test('login surfaces config and environment password remediation', () => {
assert.match(login, /status\.management === 'environment'/)
assert.match(login, /PROXY_WEB_PASSWORD/)
assert.match(login, /\/settings\?focus=password/)
assert.match(login, /bcrypt/)
assert.match(login, /当前密码仍是初始明文凭证或强度不足。建议立即修改。/)
assert.doesNotMatch(login, /bcrypt|config\.yaml/)
})
test('settings disables ineffective changes for environment managed passwords', () => {