mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 08:01:10 +00:00
fix(auth): simplify password reminder copy
This commit is contained in:
1 parent
17accb5d59
commit
87f3b678a5
2 files changed
+3
-2
No files matched your search
@@ -48,7 +48,7 @@ async function shouldOpenPasswordSettings(status: PasswordCredentialStatus): Pro
|
||||
}
|
||||
try {
|
||||
await ElMessageBox.confirm(
|
||||
'当前密码仍是初始明文凭证或强度不足。建议立即修改;新密码会以 bcrypt 哈希写入 config.yaml。',
|
||||
'当前密码仍是初始明文凭证或强度不足。建议立即修改。',
|
||||
'请修改登录密码',
|
||||
{ confirmButtonText: '立即修改', cancelButtonText: '稍后处理', closeOnClickModal: false, type: 'warning' }
|
||||
)
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user