Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/DatePicker/__snapshots__/DatePicker.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ exports[`<DatePickerStyled /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
14 changes: 14 additions & 0 deletions src/components/Layout/__snapshots__/Layout.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ exports[`<Layout /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
14 changes: 14 additions & 0 deletions src/components/Navigation/Aside/__snapshots__/Aside.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ Object {
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
14 changes: 14 additions & 0 deletions src/components/Navigation/NavBar/__snapshots__/NavBar.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ exports[`<NavBar /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
14 changes: 14 additions & 0 deletions src/components/UserForm/__snapshots__/UserForm.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ exports[`<UserForm /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
16 changes: 15 additions & 1 deletion src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,19 @@
"UserForm.pickFile": "Pick a file",
"UserForm.submit": "Submit",
"UserForm.goBack": "Go Back",
"UserForm.userPreview": "User Preview"
"UserForm.userPreview": "User Preview",
"auth/email-already-exists": "Email already in use",
"auth/invalid-email": "Email is invalid",
"auth/wrong-password": "Invalid credentials",
"auth/user-disabled": "User disabled",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
"utils.invalidEmail": "Invalid email"
}
16 changes: 15 additions & 1 deletion src/languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,19 @@
"UserForm.pickFile": "Elige un archivo",
"UserForm.submit": "Enviar",
"UserForm.goBack": "Regresar",
"UserForm.userPreview": "Vista previa del usuario"
"UserForm.userPreview": "Vista previa del usuario",
"auth/email-already-exists": "Email ya esta siendo usado",
"auth/invalid-email": "El Email inválido",
"auth/wrong-password": "Credenciales inválidas",
"auth/user-disabled": "Usuario deshabilitado",
"auth/too-many-requests": "Demasiados intentos, intententelo más tarde",
"auth/expired-action-code": "El link de invitación expiró, contáctese con su administrador",
"auth/invalid-action-code": "El link de invitación expiró, contáctese con su administrador",
"storage/quota-exceeded": "Error interno del servidor, contáctese con su administrador",
"storage/unauthenticated": "Sin autenticación, por favor autentíquese e intente de nuevo",
"storage/unauthorized": "Sin autorización, no se encuentra autorizado para realizar esta acción",
"utils.default": "Error desconocido, contáctese con su administrador",
"utils.safePassword": "Contraseña segura",
"utils.unsafePassword": "Contraseña insegura",
"utils.invalidEmail": "Email inválido"
}
14 changes: 14 additions & 0 deletions src/pages/Home/__snapshots__/Home.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ exports[`<Home /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
}
}
onError={[Function]}
Expand Down
14 changes: 14 additions & 0 deletions src/pages/Login/__snapshots__/Login.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ exports[`<Login /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
}
}
onError={[Function]}
Expand Down
7 changes: 4 additions & 3 deletions src/pages/Login/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import paths from '../Router/paths';
import classes from './Login.module.scss';

const Login = () => {
const { error, isAuth, loading } = useSelector(
const { error, isAuth, loading, locale } = useSelector(
state => ({
error: state.auth.error,
isAuth: !!state.auth.userData.id,
loading: state.auth.loading
loading: state.auth.loading,
locale: state.preferences.locale
}),
shallowEqual
);
Expand Down Expand Up @@ -61,7 +62,7 @@ const Login = () => {
const modifierLoading = loading && 'is-loading';

const inputs = isEmailLink
? inputValidations(authData.email, authData.password)
? inputValidations(authData.email, authData.password, locale)
: {
email: {
modifier: null,
Expand Down
14 changes: 14 additions & 0 deletions src/pages/NotFound/__snapshots__/NotFound.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ exports[`<NotFound /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
}
}
onError={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ exports[`<ChangePassword /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
14 changes: 14 additions & 0 deletions src/pages/Profile/__snapshots__/Profile.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@ exports[`<Profile /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
},
"onError": [Function],
"textComponent": Symbol(react.fragment),
Expand Down
14 changes: 14 additions & 0 deletions src/pages/ResetPassword/__snapshots__/ResetPassword.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ exports[`<ResetPassword /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
}
}
onError={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ exports[`<PrivateRoute /> rendering should render without crashing 1`] = `
"Users.permDelete": "This will permanently delete the user. Action can not be undone.",
"Users.search": "Search:",
"Users.users": "Users",
"auth/email-already-exists": "Email already in use",
"auth/expired-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-action-code": "The invitation link has expired, get in touch with your administrator",
"auth/invalid-email": "Email is invalid",
"auth/too-many-requests": "Too many attempts made, try again later",
"auth/user-disabled": "User disabled",
"auth/wrong-password": "Invalid credentials",
"storage/quota-exceeded": "Internal server error, get in touch with your administrator",
"storage/unauthenticated": "Unauthenticated, please authenticate and try again",
"storage/unauthorized": "Unauthorized, you are not authorized to perform this action",
"utils.default": "Unknown error, get in touch with your administrator",
"utils.invalidEmail": "Invalid email",
"utils.safePassword": "Safe password",
"utils.unsafePassword": "Unsafe password",
}
}
onError={[Function]}
Expand Down
Loading