mirror of https://gitee.com/topiam/eiam
🐛 修复重置密码错误提示不显示
parent
f3eb0cde17
commit
9c135e74f3
|
@ -33,6 +33,7 @@ import { aesEcbEncrypt } from '@/utils/aes';
|
|||
const prefixCls = 'topiam-login';
|
||||
|
||||
enum Status {
|
||||
password_invalid_error = 'password_invalid_error',
|
||||
unknown_authentication_type = 'unknown_authentication_type',
|
||||
password_validated_fail_error = 'password_validated_fail_error',
|
||||
}
|
||||
|
@ -122,6 +123,14 @@ export default () => {
|
|||
status: Status.password_validated_fail_error,
|
||||
message: message,
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (status === Status.password_invalid_error) {
|
||||
setStatus({
|
||||
status: Status.password_invalid_error,
|
||||
message: message,
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (status === Status.unknown_authentication_type) {
|
||||
setStatus({
|
||||
|
@ -163,8 +172,7 @@ export default () => {
|
|||
}}
|
||||
layout="vertical"
|
||||
>
|
||||
{status?.status === Status.password_validated_fail_error &&
|
||||
status?.message && (
|
||||
{status?.message && (
|
||||
<>
|
||||
<Message content={status?.message} />
|
||||
<br />
|
||||
|
|
Loading…
Reference in New Issue