Bläddra i källkod

update change password page add text

CR003
Alex Cheung 1 år sedan
förälder
incheckning
a640af8c79
2 ändrade filer med 31 tillägg och 2 borttagningar
  1. +13
    -2
      src/pages/User/ChangePasswordPage/index.js
  2. +18
    -0
      src/pages/authentication/ForgotPassword/AuthCallback/index.js

+ 13
- 2
src/pages/User/ChangePasswordPage/index.js Visa fil

@@ -196,13 +196,13 @@ const Index = () => {
<form onSubmit={formik.handleSubmit}>
<Grid container spacing={4} sx={{ minHeight: {xs:"80vh", sm:"50vh", md: "50vh", lg:"70vh", xl:"50vh"} }} direction="column" justifyContent="flex-start" alignItems="center">
{isPasswordExpiry()?
<Grid item width="70%" xs={12} md={12} lg={12} sx={{ mb: 1, }}>
<Grid item width="70%" xs={12} md={12} lg={12} sx={{ mb: 1, mt:2 }}>
<Typography variant="h5">
<FormattedMessage id="passwordExpired"/>
</Typography>
</Grid>
:
<Grid item xs={12} md={12} lg={12} sx={{ mb: 1,}}>
<Grid item xs={12} md={12} lg={12} sx={{ mb: 1, mt:2 }}>
<Typography variant="h5" >
<FormattedMessage id="setNewPassword"/>
</Typography>
@@ -370,6 +370,17 @@ const Index = () => {
</FormHelperText>
)}
</Grid>
<Grid container spacing={2} alignItems="center">
<Grid item sx={{ mt: 1 }}>
<Typography variant="subtitle1">
•<FormattedMessage id="pwRemark1" /><br />
•<FormattedMessage id="pwRemark2" /><br />
•<FormattedMessage id="pwRemark3" /><br />
•<FormattedMessage id="pwRemark4" /><br />
•<FormattedMessage id="pwRemark5"/><br />
</Typography>
</Grid>
</Grid>
</Grid>
<Grid item xs={12} md={12} lg={12} mt={1} sx={{mb:3}}>
<ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}>


+ 18
- 0
src/pages/authentication/ForgotPassword/AuthCallback/index.js Visa fil

@@ -186,6 +186,10 @@ const Index = () => {
}
});

const handleCCPChange = (e) => {
e.preventDefault();
};

return (
isLoading || verifyState == null ?
<Grid container sx={{ minHeight: '87vh', mb: 3 }} direction="column" justifyContent="center" alignItems="center">
@@ -380,6 +384,9 @@ const Index = () => {
value={formik.values.confirmPassword.trim()}
error={Boolean(formik.touched.confirmPassword && formik.errors.confirmPassword)}
onBlur={formik.handleBlur}
onCut={handleCCPChange}
onCopy={handleCCPChange}
onPaste={handleCCPChange}
inputProps={{
maxLength: 50,
onKeyDown: (e) => {
@@ -414,6 +421,17 @@ const Index = () => {
</FormHelperText>
)}
</Grid>
<Grid container spacing={2} alignItems="center">
<Grid item sx={{ mt: 1 }}>
<Typography variant="subtitle1">
•<FormattedMessage id="pwRemark1" /><br />
•<FormattedMessage id="pwRemark2" /><br />
•<FormattedMessage id="pwRemark3" /><br />
•<FormattedMessage id="pwRemark4" /><br />
•<FormattedMessage id="pwRemark5"/><br />
</Typography>
</Grid>
</Grid>
</Grid>
<Grid item xs={12} md={12} lg={12} mt={1} sx={{mb:3}}>
<ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}>


Laddar…
Avbryt
Spara