mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 17:40:43 +00:00
show encrypted seed only when passphrase is not empty
This commit is contained in:
parent
779b35f642
commit
38006b6380
2 changed files with 5 additions and 3 deletions
|
@ -43,7 +43,8 @@ String getSeed() {
|
|||
final lang = PolyseedLang.getByPhrase(cakepassphrase);
|
||||
final coin = PolyseedCoin.POLYSEED_MONERO;
|
||||
final ps = Polyseed.decode(cakepolyseed, lang, coin);
|
||||
if (ps.isEncrypted) return ps.encode(lang, coin);
|
||||
final passphrase = getPassphrase();
|
||||
if (ps.isEncrypted || passphrase == "") return ps.encode(lang, coin);
|
||||
ps.crypt(getPassphrase());
|
||||
return ps.encode(lang, coin);
|
||||
}
|
||||
|
|
|
@ -45,8 +45,9 @@ String getSeed() {
|
|||
final lang = PolyseedLang.getByPhrase(cakepassphrase);
|
||||
final coin = PolyseedCoin.POLYSEED_MONERO;
|
||||
final ps = Polyseed.decode(cakepolyseed, lang, coin);
|
||||
if (ps.isEncrypted) return ps.encode(lang, coin);
|
||||
ps.crypt(getPassphrase());
|
||||
final passphrase = getPassphrase();
|
||||
if (ps.isEncrypted || passphrase == "") return ps.encode(lang, coin);
|
||||
ps.crypt(passphrase);
|
||||
return ps.encode(lang, coin);
|
||||
}
|
||||
return cakepolyseed;
|
||||
|
|
Loading…
Reference in a new issue