|
|
@@ -29,22 +29,27 @@ const PasswordAlertDialog = (props) => { |
|
|
|
<DialogTitle id="alert-dialog-title"> |
|
|
|
<Stack mt={1} mr={4} direction="row" justifyContent="flex-start" alignItems="center" spacing={2}> |
|
|
|
<CancelOutlinedIcon color="error" sx={{ width: "35px", height: "40px" }} /> |
|
|
|
{props.errorMassage === 'ACCOUNT_LOCKED_ERROR' ? |
|
|
|
<Stack direction="column"> |
|
|
|
<Typography display="inline"> |
|
|
|
帳戶將被封鎖 |
|
|
|
</Typography> |
|
|
|
<Typography display="inline"> |
|
|
|
帳戶連續五次登入錯誤,請與系統管理員聯絡 |
|
|
|
</Typography> |
|
|
|
</Stack> : |
|
|
|
props.errorMassage === 'ACCOUNT_VERIFIED_ERROR' ? |
|
|
|
<Typography display="inline"> |
|
|
|
帳戶尚未驗證 |
|
|
|
</Typography> : |
|
|
|
<Typography display="inline"> |
|
|
|
用戶名或密碼錯誤 |
|
|
|
</Typography> |
|
|
|
{ |
|
|
|
props.errorMassage === 'ACCOUNT_LOCKED_ERROR' ? |
|
|
|
<Stack direction="column"> |
|
|
|
<Typography display="inline"> |
|
|
|
<FormattedMessage id="loginErrorMessage1"/> |
|
|
|
</Typography> |
|
|
|
<Typography display="inline"> |
|
|
|
<FormattedMessage id="loginErrorMessage2"/> |
|
|
|
</Typography> |
|
|
|
</Stack> : |
|
|
|
props.errorMassage === 'ACCOUNT_VERIFIED_ERROR' ? |
|
|
|
<Typography display="inline"> |
|
|
|
<FormattedMessage id="loginErrorMessage3"/> |
|
|
|
</Typography> : |
|
|
|
props.errorMassage === 'CONNECTION_ERROR' ? |
|
|
|
<Typography display="inline"> |
|
|
|
<FormattedMessage id="loginErrorMessage4"/> |
|
|
|
</Typography>: |
|
|
|
<Typography display="inline"> |
|
|
|
<FormattedMessage id="loginErrorMessage5"/> |
|
|
|
</Typography> |
|
|
|
} |
|
|
|
</Stack> |
|
|
|
</DialogTitle> |
|
|
|