Fix 2 bugs. Optimize 1 code. #40
@@ -204,6 +204,7 @@ const Forget = () => {
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<AntdInput.Password
|
<AntdInput.Password
|
||||||
|
id={'forget-password'}
|
||||||
addonBefore={
|
addonBefore={
|
||||||
<span>新 密 码</span>
|
<span>新 密 码</span>
|
||||||
}
|
}
|
||||||
@@ -231,6 +232,7 @@ const Forget = () => {
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<AntdInput.Password
|
<AntdInput.Password
|
||||||
|
id={'forget-password-confirm'}
|
||||||
addonBefore={'确认密码'}
|
addonBefore={'确认密码'}
|
||||||
placeholder={'确认密码'}
|
placeholder={'确认密码'}
|
||||||
disabled={isChanging}
|
disabled={isChanging}
|
||||||
|
|||||||
@@ -134,7 +134,11 @@ const SignIn = () => {
|
|||||||
style={{ marginTop: 10 }}
|
style={{ marginTop: 10 }}
|
||||||
rules={[{ required: true, len: 6 }]}
|
rules={[{ required: true, len: 6 }]}
|
||||||
>
|
>
|
||||||
<AntdInput showCount maxLength={6} />
|
<AntdInput
|
||||||
|
showCount
|
||||||
|
maxLength={6}
|
||||||
|
autoComplete={'off'}
|
||||||
|
/>
|
||||||
</AntdForm.Item>
|
</AntdForm.Item>
|
||||||
</AntdForm>
|
</AntdForm>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ const SignUp = () => {
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<AntdInput.Password
|
<AntdInput.Password
|
||||||
|
id={'sign-up-password'}
|
||||||
prefix={<Icon component={IconOxygenPassword} />}
|
prefix={<Icon component={IconOxygenPassword} />}
|
||||||
placeholder={'密码'}
|
placeholder={'密码'}
|
||||||
disabled={isSigningUp}
|
disabled={isSigningUp}
|
||||||
@@ -199,6 +200,7 @@ const SignUp = () => {
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<AntdInput.Password
|
<AntdInput.Password
|
||||||
|
id={'sign-up-password-confirm'}
|
||||||
prefix={<Icon component={IconOxygenPassword} />}
|
prefix={<Icon component={IconOxygenPassword} />}
|
||||||
placeholder={'确认密码'}
|
placeholder={'确认密码'}
|
||||||
disabled={isSigningUp}
|
disabled={isSigningUp}
|
||||||
|
|||||||
@@ -257,7 +257,11 @@ const User = () => {
|
|||||||
style={{ marginTop: 10 }}
|
style={{ marginTop: 10 }}
|
||||||
rules={[{ required: true, len: 6 }]}
|
rules={[{ required: true, len: 6 }]}
|
||||||
>
|
>
|
||||||
<AntdInput showCount maxLength={6} />
|
<AntdInput
|
||||||
|
showCount
|
||||||
|
maxLength={6}
|
||||||
|
autoComplete={'off'}
|
||||||
|
/>
|
||||||
</AntdForm.Item>
|
</AntdForm.Item>
|
||||||
</AntdForm>
|
</AntdForm>
|
||||||
</>
|
</>
|
||||||
@@ -336,7 +340,11 @@ const User = () => {
|
|||||||
style={{ marginTop: 10, marginRight: 30 }}
|
style={{ marginTop: 10, marginRight: 30 }}
|
||||||
rules={[{ required: true, len: 6 }]}
|
rules={[{ required: true, len: 6 }]}
|
||||||
>
|
>
|
||||||
<AntdInput showCount maxLength={6} />
|
<AntdInput
|
||||||
|
showCount
|
||||||
|
maxLength={6}
|
||||||
|
autoComplete={'off'}
|
||||||
|
/>
|
||||||
</AntdForm.Item>
|
</AntdForm.Item>
|
||||||
</AntdForm>
|
</AntdForm>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user