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

fix(auth_service): legacy wallet bip39 validation #18

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

takenagain
Copy link
Collaborator

Fixes the login issue reported by @naezith

Steps to reproduce:

  1. Register Iguana (legacy) wallet using a seed phrase
  2. Logout
  3. Log in to the Iguana wallet in HD mode.

On dev, logging into an Iguana wallet in HD mode fails with a BIP39 validation error. This is because BIP39 validation was only performed for HD wallet registrations.

Changes:

  • Perform BIP39 validation for all registrations, but only rethrow AuthException if the current mode is HD.
  • Remove invalid password validation checks

only rethrow validation exceptions for HD wallets
@takenagain takenagain added the bug Something isn't working label Dec 20, 2024
@takenagain takenagain self-assigned this Dec 20, 2024
Copy link
Member

@CharlVS CharlVS left a comment

Choose a reason for hiding this comment

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

Looks great. Please see the suggested change, run dart fix --apply . && dart format . and commit any changes (if any) to files touched in this PR.

Co-authored-by: Charl (Nitride) <[email protected]>
@takenagain
Copy link
Collaborator Author

Looks great. Please see the suggested change, run dart fix --apply . && dart format . and commit any changes (if any) to files touched in this PR.

There were no changes besides the suggested change (format & fix on save to the rescue)

@CharlVS CharlVS merged commit e51e758 into dev Dec 20, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants