mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2036 from keepassxreboot/fix/passkey_error_messages
Fix Passkey error messages
This commit is contained in:
commit
d8bfe6cb99
2 changed files with 26 additions and 10 deletions
|
|
@ -119,6 +119,10 @@
|
|||
"message": "No valid UUID provided.",
|
||||
"description": "No valid UUID provided."
|
||||
},
|
||||
"errorMessageAccessToAllEntriesDenied": {
|
||||
"message": "Access to all entries denied.",
|
||||
"description": "Access to all entries denied."
|
||||
},
|
||||
"errorMessagePasskeysAttestationNotSupported": {
|
||||
"message": "Attestation not supported.",
|
||||
"description": "Attestation not supported."
|
||||
|
|
@ -139,6 +143,14 @@
|
|||
"message": "Empty public key.",
|
||||
"description": "Empty public key."
|
||||
},
|
||||
"errorMessagePasskeysInvalidUrlProvided": {
|
||||
"message": "Invalid URL provided.",
|
||||
"description": "Invalid URL provided."
|
||||
},
|
||||
"errorMessagePasskeysResidentKeyNotSupported": {
|
||||
"message": "Resident Keys are not supported.",
|
||||
"description": "Resident Keys are not supported."
|
||||
},
|
||||
"errorNotConnected": {
|
||||
"message": "Not connected to KeePassXC.",
|
||||
"description": "Error notification shown when not connected to KeePassXC"
|
||||
|
|
|
|||
|
|
@ -26,11 +26,12 @@ const kpErrors = {
|
|||
NO_GROUPS_FOUND: 16,
|
||||
CANNOT_CREATE_NEW_GROUP: 17,
|
||||
NO_VALID_UUID_PROVIDED: 18,
|
||||
PASSKEYS_ATTESTATION_NOT_SUPPORTED: 19,
|
||||
PASSKEYS_CREDENTIAL_IS_EXCLUDED: 20,
|
||||
PASSKEYS_REQUEST_CANCELED: 21,
|
||||
PASSKEYS_INVALID_USER_VERIFICATION: 22,
|
||||
PASSKEYS_EMPTY_PUBLIC_KEY: 23,
|
||||
PASSKEYS_ATTESTATION_NOT_SUPPORTED: 20,
|
||||
PASSKEYS_CREDENTIAL_IS_EXCLUDED: 21,
|
||||
PASSKEYS_REQUEST_CANCELED: 22,
|
||||
PASSKEYS_INVALID_USER_VERIFICATION: 23,
|
||||
PASSKEYS_EMPTY_PUBLIC_KEY: 24,
|
||||
PASSKEYS_INVALID_URL_PROVIDED: 25,
|
||||
|
||||
errorMessages: {
|
||||
0: { msg: tr('errorMessageUnknown') },
|
||||
|
|
@ -52,11 +53,14 @@ const kpErrors = {
|
|||
16: { msg: tr('errorMessageNoGroupsFound') },
|
||||
17: { msg: tr('errorMessageCannotCreateNewGroup') },
|
||||
18: { msg: tr('errorMessageNoValidUuidProvided') },
|
||||
19: { msg: tr('errorMessagePasskeysAttestationNotSupported') },
|
||||
20: { msg: tr('errorMessagePasskeysCredentialIsExcluded') },
|
||||
21: { msg: tr('errorMessagePasskeysRequestCanceled') },
|
||||
22: { msg: tr('errorMessagePasskeysInvalidUserVerification') },
|
||||
23: { msg: tr('errorMessagePasskeysEmptyPublicKey') },
|
||||
19: { msg: tr('errorMessageAccessToAllEntriesDenied') },
|
||||
20: { msg: tr('errorMessagePasskeysAttestationNotSupported') },
|
||||
21: { msg: tr('errorMessagePasskeysCredentialIsExcluded') },
|
||||
22: { msg: tr('errorMessagePasskeysRequestCanceled') },
|
||||
23: { msg: tr('errorMessagePasskeysInvalidUserVerification') },
|
||||
24: { msg: tr('errorMessagePasskeysEmptyPublicKey') },
|
||||
25: { msg: tr('errorMessagePasskeysInvalidUrlProvided') },
|
||||
26: { msg: tr('errorMessagePasskeysResidentKeyNotSupported') },
|
||||
},
|
||||
|
||||
getError(errorCode) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue