mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
WizardRestoreWallet1: trim whitespaces from seed
This commit is contained in:
parent
96cca79b70
commit
0184c3a314
1 changed files with 3 additions and 3 deletions
|
@ -50,8 +50,8 @@ Rectangle {
|
||||||
if(wizardController.walletRestoreMode === "keys") {
|
if(wizardController.walletRestoreMode === "keys") {
|
||||||
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
|
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
|
||||||
} else if(wizardController.walletRestoreMode === "seed") {
|
} else if(wizardController.walletRestoreMode === "seed") {
|
||||||
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text);
|
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text.trim());
|
||||||
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text);
|
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text.trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -306,7 +306,7 @@ Rectangle {
|
||||||
|
|
||||||
switch (wizardController.walletRestoreMode) {
|
switch (wizardController.walletRestoreMode) {
|
||||||
case 'seed':
|
case 'seed':
|
||||||
wizardController.walletOptionsSeed = seedInput.text;
|
wizardController.walletOptionsSeed = seedInput.text.trim();
|
||||||
wizardController.walletOptionsSeedOffset = seedOffsetCheckbox.checked ? seedOffset.text : "";
|
wizardController.walletOptionsSeedOffset = seedOffsetCheckbox.checked ? seedOffset.text : "";
|
||||||
break;
|
break;
|
||||||
default: // walletRestoreMode = keys or qr
|
default: // walletRestoreMode = keys or qr
|
||||||
|
|
Loading…
Reference in a new issue