mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: passwordchecker
This commit is contained in:
parent
0a020c6b3e
commit
281e027c8a
@ -1,6 +1,13 @@
|
||||
import { makeStyles } from '@material-ui/styles';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
|
||||
export const useStyles = makeStyles(theme => ({
|
||||
resetPassword: {
|
||||
width: '350px',
|
||||
maxWidth: '350px',
|
||||
[theme.breakpoints.down('xs')]: {
|
||||
width: '100%',
|
||||
},
|
||||
},
|
||||
container: {
|
||||
display: 'flex',
|
||||
},
|
||||
|
@ -17,24 +17,26 @@ const ResetPassword = () => {
|
||||
return (
|
||||
<div ref={ref}>
|
||||
<StandaloneLayout>
|
||||
<ConditionallyRender
|
||||
condition={invalidToken}
|
||||
show={<InvalidToken />}
|
||||
elseShow={
|
||||
<ResetPasswordDetails
|
||||
token={token}
|
||||
setLoading={setLoading}
|
||||
>
|
||||
<Typography
|
||||
variant="h2"
|
||||
className={styles.title}
|
||||
data-loading
|
||||
<div className={styles.resetPassword}>
|
||||
<ConditionallyRender
|
||||
condition={invalidToken}
|
||||
show={<InvalidToken />}
|
||||
elseShow={
|
||||
<ResetPasswordDetails
|
||||
token={token}
|
||||
setLoading={setLoading}
|
||||
>
|
||||
Reset password
|
||||
</Typography>
|
||||
</ResetPasswordDetails>
|
||||
}
|
||||
/>
|
||||
<Typography
|
||||
variant="h2"
|
||||
className={styles.title}
|
||||
data-loading
|
||||
>
|
||||
Reset password
|
||||
</Typography>
|
||||
</ResetPasswordDetails>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</StandaloneLayout>
|
||||
</div>
|
||||
);
|
||||
|
@ -12,7 +12,7 @@ const ResetPasswordDetails: FC<IResetPasswordDetails> = ({
|
||||
setLoading,
|
||||
}) => {
|
||||
return (
|
||||
<div>
|
||||
<div style={{ width: '100%' }}>
|
||||
{children}
|
||||
<ResetPasswordForm token={token} setLoading={setLoading} />
|
||||
</div>
|
||||
|
@ -28,7 +28,7 @@ const NUMBER_ERROR = 'The password must contain at least one number.';
|
||||
const SYMBOL_ERROR =
|
||||
'The password must contain at least one special character.';
|
||||
const UPPERCASE_ERROR =
|
||||
'The password must contain at least one uppercase letter';
|
||||
'The password must contain at least one uppercase letter.';
|
||||
const LOWERCASE_ERROR =
|
||||
'The password must contain at least one lowercase letter.';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user