From a65c631fcce6623bc1984b0fc9baf7980b13f4b9 Mon Sep 17 00:00:00 2001 From: German Lena Date: Fri, 23 Dec 2016 11:20:39 -0300 Subject: [PATCH] added new error code --- src/core/web_api.js | 4 ++-- src/i18n/en.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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..90caf9418 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": "Session missing. Close all open login dialogs and try again." }, passwordless: { "bad.email": "The email is invalid",