Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new error code: session_missing #760

Merged
merged 2 commits into from
Jan 2, 2017
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
4 changes: 2 additions & 2 deletions src/core/web_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down