mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-23 00:16:25 +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 => ({
|
export const useStyles = makeStyles(theme => ({
|
||||||
|
resetPassword: {
|
||||||
|
width: '350px',
|
||||||
|
maxWidth: '350px',
|
||||||
|
[theme.breakpoints.down('xs')]: {
|
||||||
|
width: '100%',
|
||||||
|
},
|
||||||
|
},
|
||||||
container: {
|
container: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
},
|
},
|
||||||
|
@ -17,6 +17,7 @@ const ResetPassword = () => {
|
|||||||
return (
|
return (
|
||||||
<div ref={ref}>
|
<div ref={ref}>
|
||||||
<StandaloneLayout>
|
<StandaloneLayout>
|
||||||
|
<div className={styles.resetPassword}>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={invalidToken}
|
condition={invalidToken}
|
||||||
show={<InvalidToken />}
|
show={<InvalidToken />}
|
||||||
@ -35,6 +36,7 @@ const ResetPassword = () => {
|
|||||||
</ResetPasswordDetails>
|
</ResetPasswordDetails>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</StandaloneLayout>
|
</StandaloneLayout>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -12,7 +12,7 @@ const ResetPasswordDetails: FC<IResetPasswordDetails> = ({
|
|||||||
setLoading,
|
setLoading,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div style={{ width: '100%' }}>
|
||||||
{children}
|
{children}
|
||||||
<ResetPasswordForm token={token} setLoading={setLoading} />
|
<ResetPasswordForm token={token} setLoading={setLoading} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,7 +28,7 @@ const NUMBER_ERROR = 'The password must contain at least one number.';
|
|||||||
const SYMBOL_ERROR =
|
const SYMBOL_ERROR =
|
||||||
'The password must contain at least one special character.';
|
'The password must contain at least one special character.';
|
||||||
const UPPERCASE_ERROR =
|
const UPPERCASE_ERROR =
|
||||||
'The password must contain at least one uppercase letter';
|
'The password must contain at least one uppercase letter.';
|
||||||
const LOWERCASE_ERROR =
|
const LOWERCASE_ERROR =
|
||||||
'The password must contain at least one lowercase letter.';
|
'The password must contain at least one lowercase letter.';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user