diff --git a/src/core/web_api.js b/src/core/web_api.js index 6e4949228..0efe45b5d 100644 --- a/src/core/web_api.js +++ b/src/core/web_api.js @@ -206,8 +206,8 @@ function normalizeError(error) { } const result = { - error: error.details ? error.details.error : (error.statusCode || error.error), - description: error.details ? error.details.error_description : (error.error_description || error.error) + error: error.details ? error.details.error : (error.code || error.statusCode || error.error), + description: error.details ? error.details.error_description : (error.error_description || error.description || error.error) } // result is used for passwordless and error for database. diff --git a/src/i18n/en.js b/src/i18n/en.js index 60155a853..22f0ae882 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -18,7 +18,8 @@ export default { "lock.mfa_invalid_code": "Wrong code. Please try again.", "password_change_required": "You need to update your password because this is the first time you are logging in, or because your password has expired.", // TODO: verify error code "password_leaked": "This login has been blocked because your password has been leaked in another website. We’ve sent you an email with instructions on how to unblock it.", - "too_many_attempts": "Your account has been blocked after multiple consecutive login attempts." + "too_many_attempts": "Your account has been blocked after multiple consecutive login attempts.", + "session_missing": "Couldn't complete your authentication request. Please try again after closing all open dialogs" }, passwordless: { "bad.email": "The email is invalid", diff --git a/src/i18n/es.js b/src/i18n/es.js index 2059ff01b..c508ec15a 100644 --- a/src/i18n/es.js +++ b/src/i18n/es.js @@ -19,6 +19,7 @@ export default { "too_many_attempts": "Su cuenta ha sido bloqueada luego de múltiples intentos de inicio de sesión consecutivos.", "lock.mfa_registration_required": "Por favor enrole su dispositivo antes de continuar con el segundo factor.", "lock.mfa_invalid_code": "Código incorrecto. Por favor vuelva a intentarlo.", + "session_missing": "No es posible completar el proceso de Autenticación. Por favor, cierre todas las ventanas e intente nuevamente." }, passwordless: { "bad.email": "Correo inválido",