Browse Source

update change password page add text

CR003
Alex Cheung 1 year ago
parent
commit
a640af8c79
2 changed files with 31 additions and 2 deletions
  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 View File

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


+ 18
- 0
src/pages/authentication/ForgotPassword/AuthCallback/index.js View File

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


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

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


Loading…
Cancel
Save