mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
MS14699: Prevent Wallet passcode from being sticky in certain cases
This commit is contained in:
parent
b657c28a9b
commit
53fe0bc616
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