mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-12 10:52:32 +02:00
Merge pull request #13103 from zfox23/MS14699_clearCachedPasscode
MS14699: Prevent Wallet passcode from being sticky in certain cases
This commit is contained in:
commit
b314d496ec
1 changed files with 11 additions and 0 deletions
|
@ -47,6 +47,13 @@ Item {
|
|||
|
||||
onWalletAuthenticatedStatusResult: {
|
||||
submitPassphraseInputButton.enabled = true;
|
||||
|
||||
// It's not possible to auth with a blank passphrase,
|
||||
// so bail early if we get this signal without anything in the passphrase field
|
||||
if (passphraseField.text === "") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isAuthenticated) {
|
||||
errorText.text = "Authentication failed - please try again.";
|
||||
passphraseField.error = true;
|
||||
|
@ -211,6 +218,10 @@ Item {
|
|||
error = false;
|
||||
focus = true;
|
||||
forceActiveFocus();
|
||||
} else {
|
||||
showPassphrase.checked = false;
|
||||
passphraseField.text = "";
|
||||
error = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue