Skip to content

[18.0][FIX] vault: show clear message on wrong unlock password - #988

Open
jans23 wants to merge 1 commit into
OCA:18.0from
Nitrokey:18.0-fix-vault-wrong-password-message
Open

[18.0][FIX] vault: show clear message on wrong unlock password#988
jans23 wants to merge 1 commit into
OCA:18.0from
Nitrokey:18.0-fix-vault-wrong-password-message

Conversation

@jans23

@jans23 jans23 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Raise a clear message instead of raw OperationError when entering a wrong password.

@jans23
jans23 force-pushed the 18.0-fix-vault-wrong-password-message branch from a691487 to a036233 Compare August 24, 2026 12:35
} catch {
throw new Error(
_t("The entered password is wrong. Please try again.")
);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original message should atleast be written to console.error(...)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed as requested.

Comment thread vault/static/src/backend/vault.esm.js Outdated
this.keys = {
publicKey: await vault_utils.load_public_key(params.public),
privateKey: await vault_utils.load_private_key(
let privateKey = null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else is using snake_case. Please stick to it for consistency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed as requested.

Raise a clear message instead of raw OperationError when
entering a wrong password.
@jans23
jans23 force-pushed the 18.0-fix-vault-wrong-password-message branch from a036233 to 910ed44 Compare September 2, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants