mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 11:39:31 +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") {
|
||||
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
|
||||
} else if(wizardController.walletRestoreMode === "seed") {
|
||||
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text);
|
||||
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text);
|
||||
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text.trim());
|
||||
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text.trim());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -306,7 +306,7 @@ Rectangle {
|
|||
|
||||
switch (wizardController.walletRestoreMode) {
|
||||
case 'seed':
|
||||
wizardController.walletOptionsSeed = seedInput.text;
|
||||
wizardController.walletOptionsSeed = seedInput.text.trim();
|
||||
wizardController.walletOptionsSeedOffset = seedOffsetCheckbox.checked ? seedOffset.text : "";
|
||||
break;
|
||||
default: // walletRestoreMode = keys or qr
|
||||
|
|
Loading…
Reference in a new issue