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

Reset pincode cache if unlock fails #1430

Merged
merged 1 commit into from
Oct 22, 2019
Merged

Conversation

cmcewen
Copy link
Contributor

@cmcewen cmcewen commented Oct 22, 2019

Description

When a user enters a pincode incorrectly, we set that value in the cache and never reset it. This removes the cache for incorrect values

Tested

Followed the steps in #1229 and was able to send a payment with correct pincode entry

Related issues

Backwards compatibility

Should have no effect

@cmcewen cmcewen requested a review from jmrossy as a code owner October 22, 2019 22:49
@cmcewen cmcewen added the automerge Have PR merge automatically when checks pass label Oct 22, 2019
@codecov
Copy link

codecov bot commented Oct 22, 2019

Codecov Report

Merging #1430 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1430      +/-   ##
==========================================
+ Coverage   67.58%   67.62%   +0.03%     
==========================================
  Files         269      269              
  Lines        7982     7984       +2     
  Branches      539      539              
==========================================
+ Hits         5395     5399       +4     
+ Misses       2479     2477       -2     
  Partials      108      108
Flag Coverage Δ
#mobile 67.62% <100%> (+0.03%) ⬆️
Impacted Files Coverage Δ
packages/mobile/src/web3/saga.ts 51.76% <100%> (+0.57%) ⬆️
packages/mobile/src/pincode/PincodeCache.ts 62.5% <100%> (+25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3bf4177...2ea3e13. Read the comment docs.

Copy link
Contributor

@annakaz annakaz left a comment

Choose a reason for hiding this comment

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

⛵️

@celo-ci-bot-user celo-ci-bot-user merged commit b07c091 into master Oct 22, 2019
@celo-ci-bot-user celo-ci-bot-user deleted the cmcewen/pincode-fix branch October 22, 2019 23:38
@annakaz annakaz removed their assignment Oct 22, 2019
tkporter pushed a commit that referenced this pull request Oct 24, 2019
aaronmgdr added a commit that referenced this pull request Oct 24, 2019
* master:
  [Wallet] Wallet can switch between hosted and local node (#1419)
  [Wallet] Prevent error from Avatar when name is missing (#1454)
  [Wallet] Show splash screen until JS is ready on iOS (#1453)
  Use new segment api keys used by both iOS and Android (#1452)
  [Wallet] Don't log all props, which includes i18n (#1445)
  [Helm] Updated the helm package to deploy the upgraded blockscout version (#1129)
  Tiny copy change (#1429)
  [contractkit] SortedOraclesWrapper + tests (#1405)
  [wallet] Refactor leftover thunk to sagas (#1388)
  [Wallet] Fix repeated QR code scanning and related navigation issues (#1439)
  [Wallet] Show the currency values with correct rounding. (#1435)
  [Wallet] Fix firebase initialization error on iOS after reinstalling the app (#1423)
  [Wallet] Use exit on iOS since we can't restart like Android (#1424)
  [Wallet] Update local currency styles and layout (#1325)
  Reset pincode cache if unlock fails (#1430)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
5 participants