feat(ui): add the attribute mode="password" to the password input on the Setup page to enable password visibility toggle

This commit is contained in:
Apple\Apple
2025-06-04 08:50:38 +08:00
parent 9693df9bf3
commit d39c9cbec6
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
"其他登录选项": "Other login options",
"其他注册选项": "Other registration options",
"请输入您的用户名或邮箱地址": "Please enter your username or email address",
"请输入您的邮箱地址": "Please enter your email address",
"请输入您的密码": "Please enter your password",
"继续": "Continue",
"%d 点额度": "%d point quota",

View File

@@ -349,6 +349,7 @@ const Setup = () => {
size='large'
className="mb-4 !rounded-lg"
noLabel={false}
mode="password"
validateStatus="default"
onChange={(value) =>
setFormData({ ...formData, password: value })
@@ -364,6 +365,7 @@ const Setup = () => {
size='large'
className="!rounded-lg"
noLabel={false}
mode="password"
validateStatus="default"
onChange={(value) =>
setFormData({ ...formData, confirmPassword: value })