Skip to content

Commit

Permalink
Feat: Mask auto login password in Login component
Browse files Browse the repository at this point in the history
  • Loading branch information
PeiPei233 committed Apr 8, 2024
1 parent 3c4fe21 commit 71db870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Login({ setIsLogin, autoLoginUsername, autoLoginPassword
notification.info({
message: `正在自动登录 ${autoLoginUsername}...`,
})
form.setFieldsValue({ username: autoLoginUsername, password: autoLoginPassword, remember: true })
form.setFieldsValue({ username: autoLoginUsername, password: '*'.repeat(autoLoginPassword.length), remember: true })
onFinish({ username: autoLoginUsername, password: autoLoginPassword, remember: true })
}
}, [autoLoginUsername, autoLoginPassword])
Expand Down

0 comments on commit 71db870

Please sign in to comment.