Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Ignore all whitespace in recovery key #411

Merged

Conversation

knaeckeKami
Copy link
Contributor

Rationale

If the user copies his recovery key in another document, exports it to a PDF file, etc, there might be additional whitespace characters inserted. If he would copy this key and paste in the app to restore his backup, this additional whitespace characters should be ignored.

Pull Request Checklist

  • [✔️] Pull request is based on the develop branch
  • [✔️] Pull request updates CHANGES.rst
  • [✔️] Pull request includes a sign off

Signed-off-by: Martin Kamleithner martin@diagnosia.com

Copy link
Contributor

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Hi @knaeckeKami,
Thanks for the PR, looks good to me!
Thanks for adding unit test to cover your change :)
Benoit

-

Improvements:
- isValidRecoveryKey() ignores now all whitespace characters, not only spaces
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not necessary to add a new block of changes, the current block at the top of file is already here to add changes for the next release. So you just need to add two lines for you PR (this one and the one in the Test section).
Anyway I will fix this after merging your PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants