Fix 2 bugs. Optimize 1 code. #40
@@ -204,6 +204,7 @@ const Forget = () => {
|
||||
]}
|
||||
>
|
||||
<AntdInput.Password
|
||||
id={'forget-password'}
|
||||
addonBefore={
|
||||
<span>新 密 码</span>
|
||||
}
|
||||
@@ -231,6 +232,7 @@ const Forget = () => {
|
||||
]}
|
||||
>
|
||||
<AntdInput.Password
|
||||
id={'forget-password-confirm'}
|
||||
addonBefore={'确认密码'}
|
||||
placeholder={'确认密码'}
|
||||
disabled={isChanging}
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user