diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index 1063a925..d30fc2ba 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -43,6 +43,7 @@ jobs:
VALIDATE_ALL_CODEBASE: false
VALIDATE_SHELL_SHFMT: false
VALIDATE_JSCPD: false
+ VALIDATE_CSS: false
VALIDATE_EDITORCONFIG: false
VALIDATE_MARKDOWN: false
# TODO: hadolint can be activated after this PR is accepted, merged and a new version is tagged https://github.com/github/super-linter/pull/3500
diff --git a/package.json b/package.json
index 6ccae485..0a2ca1b5 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"@mui/material": "^5.11.12",
"aws-amplify": "^5.1.4",
"axios": "^1.4.0",
+ "check-password-strength": "^2.0.7",
"cookie": "^0.5.0",
"eslint": "^8.40.0",
"eslint-config-next": "13.2.3",
diff --git a/src/components/elements/passwordLevel/index.tsx b/src/components/elements/passwordLevel/index.tsx
new file mode 100644
index 00000000..56c08617
--- /dev/null
+++ b/src/components/elements/passwordLevel/index.tsx
@@ -0,0 +1,67 @@
+import * as React from 'react';
+import { Typography } from '@mui/material';
+
+export default function PasswordLevel({ passwordLevel }: any) {
+ return passwordLevel.length > 0 ? (
+ <>
+
+ {passwordLevel.id >= 0 && (
+
+ )}
+ {passwordLevel.id >= 1 && (
+
+ )}
+ {passwordLevel.id >= 2 && (
+
+ )}
+ {passwordLevel.id >= 3 && (
+
+ )}
+
+
+ Nivel de contraseña
+ {passwordLevel.id === 0 && ' Muy Bajo'}
+ {passwordLevel.id === 1 && ' Bajo'}
+ {passwordLevel.id === 2 && ' Medio'}
+ {passwordLevel.id === 3 && ' Fuerte'}
+
+ >
+ ) : null;
+}
diff --git a/src/components/form/input/index.tsx b/src/components/form/input/index.tsx
index 128f8e65..a3326bad 100644
--- a/src/components/form/input/index.tsx
+++ b/src/components/form/input/index.tsx
@@ -1,8 +1,8 @@
-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
-import Tooltip, { TooltipProps, tooltipClasses } from "@mui/material/Tooltip";
-import { FormControl, InputLabel, Typography } from "@mui/material";
-import { styled } from "@mui/material/styles";
-import { IconButton } from "@mui/material";
+import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
+import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip';
+import { FormControl, InputLabel, Typography } from '@mui/material';
+import { styled } from '@mui/material/styles';
+import { IconButton } from '@mui/material';
interface IProps {
label?: string;
@@ -20,13 +20,13 @@ export const FormControlApp = (props: IProps) => {
))(({ theme }) => ({
[`& .${tooltipClasses.tooltip}`]: {
- backgroundColor: "#fff",
- color: "#707070",
+ backgroundColor: '#fff',
+ color: '#707070',
maxWidth: 317,
fontSize: theme.typography.pxToRem(12),
- borderRadius: "6px",
- border: "1px solid #dadde9",
- padding: "18px 20px",
+ borderRadius: '6px',
+ border: '1px solid #dadde9',
+ padding: '18px 20px',
},
}));
@@ -39,17 +39,17 @@ export const FormControlApp = (props: IProps) => {
error={props.msg ? true : false}
shrink={true}
>
- {props.label}{" "}
+ {props.label}{' '}
- {props.required && "*"}
- {" "}
+ {props.required && '*'}
+ {' '}
{props.icon}
{props.tooltip && (
{
<>
{props.tooltip}
@@ -65,16 +65,16 @@ export const FormControlApp = (props: IProps) => {
<>
{props.tooltipText}
@@ -85,14 +85,14 @@ export const FormControlApp = (props: IProps) => {
>
@@ -102,9 +102,9 @@ export const FormControlApp = (props: IProps) => {
)}
{props.children}
{!props.noGutter && (
-
+
{props.msg}
- {"\u00A0"}
+ {'\u00A0'}
)}
diff --git a/src/pages/register/stepper/index.tsx b/src/pages/register/stepper/index.tsx
index 6624376e..2138d9cb 100644
--- a/src/pages/register/stepper/index.tsx
+++ b/src/pages/register/stepper/index.tsx
@@ -75,17 +75,17 @@ export default function StepperRegister() {
} = {};
if (index === 0) {
labelProps.optional = (
- Identidad de usuario
+ Identifícate
);
}
if (index === 1) {
labelProps.optional = (
- Verificación Identidad
+ Verifícate
);
}
if (index === 2) {
labelProps.optional = (
- Completar Registro
+ Regístrate
);
}
diff --git a/src/pages/register/stepper/step1.tsx b/src/pages/register/stepper/step1.tsx
index 50acef90..40eed2f5 100644
--- a/src/pages/register/stepper/step1.tsx
+++ b/src/pages/register/stepper/step1.tsx
@@ -100,18 +100,18 @@ export default function Step1({ setInfoCedula, handleNext }: any) {
{loading && }
- Inicia colocando tu número de cédula para iniciar la verificación de tu
- identidad.
+ Este es el primer paso para poder verificar tu identidad y crear tu
+ cuenta ciudadana.