-
Notifications
You must be signed in to change notification settings - Fork 444
Fix #7113, #7181: Ability to reveal password during wallet unlock, restore, and create #7269
Conversation
1e5a0c2
to
8d24d33
Compare
8d24d33
to
aa877a4
Compare
Not related, but while we are here, can you add |
@stoletheminerals good suggestion, applied in 2a164c9 |
Can keyboard popping be prevented somehow? Weirdly in the screen recording it shows that when I press the "eye" it hides the keyboard, but in fact it just hides it and then instantly brings it back. Doesn't look smooth. 234652191-20bd0deb-b04d-4f47-beea-0da39b25732c.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security-wise lgtm
@stoletheminerals I tried to resolve this issue a few ways but wasn't able too; I have one more idea to try. Weirdest part is it does not do this on iOS 15, only on iOS 16 🫠: keyboard.ios.15.mov |
…toring wallet. Hide password (if revealed) before populating unlock wallet password field with stored password. Hide recovery phrase (if revealed) before revealing wallet password when restoring wallet from recovery phrase.
…llet. Don't focus keyboard when pre-filling password via biometrics.
…ton interaction when text is inputted in the field (SwiftUI quirk with the WalletPromptView)
2a164c9
to
06d5ccf
Compare
…sword during wallet unlock, restore, and create (brave/brave-ios#7269) * Add `RevealableSecureField` password field for Unlock, Create and Restoring wallet. Hide password (if revealed) before populating unlock wallet password field with stored password. Hide recovery phrase (if revealed) before revealing wallet password when restoring wallet from recovery phrase. * Move Biometrics button below Unlock/Restore buttons when unlocking wallet. Don't focus keyboard when pre-filling password via biometrics. * Disable autocapitalization in recovery phrase field
…e-ios#7427) * Revert "Fix brave/brave-ios#7113, brave/brave-ios#7181: Ability to reveal password during wallet unlock, restore, and create (brave/brave-ios#7269)" This reverts commit 6122a2d. * Revert brave/brave-ios#7382 - auto-focus password field in unlock wallet
Summary of Changes
SecureField
on screen which will blocks 3rd-party keyboards on this view.SecureField
was present on screen previously and password is being revealed, where having 3 fields on view for restore seems to trip up that logic and allows 3rd-party keyboards when the fields are revealed..onChange(of: isPasswordRevealed)
&.onChange(of: showingRecoveryPhase)
logic fromRestoreWalletView
will allow 3rd-party keyboards when the fields are revealed.This pull request fixes #7113, fixes #7181
Submitter Checklist:
NSLocalizableString()
Test Plan:
Needs tested on device with 3rd-party keyboard installed. I haven't noticed any behaviour differences between iOS 15 and iOS 16.
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
bug
/enhancement