Optimize: two-factor - remove autocomplete when typing

This commit is contained in:
2024-03-04 15:01:38 +08:00
parent db28fba694
commit 65fc6e9c28
4 changed files with 19 additions and 3 deletions

View File

@@ -204,6 +204,7 @@ const Forget = () => {
]}
>
<AntdInput.Password
id={'forget-password'}
addonBefore={
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
}
@@ -231,6 +232,7 @@ const Forget = () => {
]}
>
<AntdInput.Password
id={'forget-password-confirm'}
addonBefore={'确认密码'}
placeholder={'确认密码'}
disabled={isChanging}

View File

@@ -134,7 +134,11 @@ const SignIn = () => {
style={{ marginTop: 10 }}
rules={[{ required: true, len: 6 }]}
>
<AntdInput showCount maxLength={6} />
<AntdInput
showCount
maxLength={6}
autoComplete={'off'}
/>
</AntdForm.Item>
</AntdForm>
</>

View File

@@ -177,6 +177,7 @@ const SignUp = () => {
]}
>
<AntdInput.Password
id={'sign-up-password'}
prefix={<Icon component={IconOxygenPassword} />}
placeholder={'密码'}
disabled={isSigningUp}
@@ -199,6 +200,7 @@ const SignUp = () => {
]}
>
<AntdInput.Password
id={'sign-up-password-confirm'}
prefix={<Icon component={IconOxygenPassword} />}
placeholder={'确认密码'}
disabled={isSigningUp}

View File

@@ -257,7 +257,11 @@ const User = () => {
style={{ marginTop: 10 }}
rules={[{ required: true, len: 6 }]}
>
<AntdInput showCount maxLength={6} />
<AntdInput
showCount
maxLength={6}
autoComplete={'off'}
/>
</AntdForm.Item>
</AntdForm>
</>
@@ -336,7 +340,11 @@ const User = () => {
style={{ marginTop: 10, marginRight: 30 }}
rules={[{ required: true, len: 6 }]}
>
<AntdInput showCount maxLength={6} />
<AntdInput
showCount
maxLength={6}
autoComplete={'off'}
/>
</AntdForm.Item>
</AntdForm>
</>