perf: ukey change pin support validate length

This commit is contained in:
Bai
2026-06-05 14:58:39 +08:00
parent b5fc6b969d
commit 8b7a4821ea
2 changed files with 16 additions and 0 deletions

View File

@@ -425,6 +425,10 @@ operations:
- key: newPIN
label: "{{ '新 PIN' | trans }}"
type: password
validate:
minLength: 4
maxLength: 32
message: "{{ 'PIN 码长度必须在 4-32 位之间' | trans }}"
- key: newPIN2
label: "{{ '确认 PIN' | trans }}"
type: password
@@ -772,3 +776,7 @@ i18n:
zh: "提交登录"
zh_hant: "提交登入"
en: "Submit Sign-In"
"PIN 码长度必须在 4-32 位之间":
zh: "PIN 码长度必须在 4-32 位之间"
zh_hant: "PIN 碼長度必須在 4-32 位之間"
en: "PIN code length must be between 4 and 32 characters"

View File

@@ -557,6 +557,10 @@ operations:
- key: newPIN
label: "{{ '新 PIN' | trans }}"
type: password
validate:
minLength: 4
maxLength: 32
message: "{{ 'PIN 码长度必须在 4-32 位之间' | trans }}"
- key: newPIN2
label: "{{ '确认 PIN' | trans }}"
type: password
@@ -990,4 +994,8 @@ i18n:
zh: "提交登录"
zh_hant: "提交登入"
en: "Submit Sign-In"
"PIN 码长度必须在 4-32 位之间":
zh: "PIN 码长度必须在 4-32 位之间"
zh_hant: "PIN 碼長度必須在 4-32 位之間"
en: "PIN code length must be between 4 and 32 characters"