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

Nt/private import fix #2861

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Nt/private import fix #2861

merged 2 commits into from
Apr 22, 2024

Conversation

noumantahir
Copy link
Collaborator

@noumantahir noumantahir commented Apr 18, 2024

What does this PR?

After testing login routines for some time I finally identified a loophole that most probably causing login data getting corrupted.

Essentially if someone logged in with active or posting key and attempts to import any of keys under Manage Authorities section. What was happening is it overwrites all of private keys to the one imported by user after login.

This matches perfectly with one of reported by a user facing similar issue of being logged in with active but not able to use it yet not being logged out as well.

This is also directly related to pinCode related issue affecting the login data since pinCode is perquisite of managing authorities in app

Steps to reproduce

Login with any key other than master password, import some other key under Manage Authorities

Issue number

Screenshots/Video

BEFORE
https://github.com/ecency/ecency-mobile/assets/6298342/a134f7f4-1428-4ce8-a2c8-ef4bec7ea322

AFTER
https://github.com/ecency/ecency-mobile/assets/6298342/c5259d66-311d-4f2e-bc4d-4c9752f2e8a6

@noumantahir noumantahir marked this pull request as ready for review April 22, 2024 13:48
@noumantahir noumantahir changed the title [WIP] Nt/private import fix Nt/private import fix Apr 22, 2024
Copy link
Member

@feruzm feruzm left a comment

Choose a reason for hiding this comment

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

lgtm

@feruzm feruzm merged commit 777b389 into development Apr 22, 2024
@feruzm feruzm deleted the nt/private-import-fix branch April 22, 2024 14:48
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.

None yet

2 participants