Skip to content

Fix accidental duress stash creation in loginWithKey #654

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

Merged
merged 2 commits into from
May 12, 2025

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented May 12, 2025

The loginWithKey method has a bug where it will call ensureAccountExists for the duress account if duressMode option is set to true. If we don't have a duress account for the account being logged into, then we shouldn't be creating an duress account from within loginWithKey.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@samholmes samholmes force-pushed the sam/duress-key-login-create-bug branch 2 times, most recently from 378cd21 to a787f18 Compare May 12, 2025 22:34
samholmes added 2 commits May 12, 2025 15:35
The `loginWithKey` method has a bug where it will call
`ensureAccountExists` for the duress account if `duressMode` option is
set to true. If we don't have a duress account for the account being
logged into, then we shouldn't be creating an duress account from
within `loginWithKey`.
@samholmes samholmes force-pushed the sam/duress-key-login-create-bug branch from a787f18 to bba7625 Compare May 12, 2025 22:35
@samholmes samholmes enabled auto-merge May 12, 2025 22:35
@samholmes samholmes merged commit 0e79d02 into master May 12, 2025
2 checks passed
@samholmes samholmes deleted the sam/duress-key-login-create-bug branch May 12, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants