mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:58:09 +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: {
|
onWalletAuthenticatedStatusResult: {
|
||||||
submitPassphraseInputButton.enabled = true;
|
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) {
|
if (!isAuthenticated) {
|
||||||
errorText.text = "Authentication failed - please try again.";
|
errorText.text = "Authentication failed - please try again.";
|
||||||
passphraseField.error = true;
|
passphraseField.error = true;
|
||||||
|
@ -211,6 +218,10 @@ Item {
|
||||||
error = false;
|
error = false;
|
||||||
focus = true;
|
focus = true;
|
||||||
forceActiveFocus();
|
forceActiveFocus();
|
||||||
|
} else {
|
||||||
|
showPassphrase.checked = false;
|
||||||
|
passphraseField.text = "";
|
||||||
|
error = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue