|
|
@ -142,11 +142,15 @@ class _SettingsState extends State<Settings> {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
handle.unlock(recoveryKey: str);
|
|
|
|
handle.unlock(recoveryKey: str);
|
|
|
|
valid = true;
|
|
|
|
valid = true;
|
|
|
|
} catch (_) {
|
|
|
|
} catch (e, s) {
|
|
|
|
|
|
|
|
debugPrint('Couldn\'t use recovery key: ' + e.toString());
|
|
|
|
|
|
|
|
debugPrint(s.toString());
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
handle.unlock(passphrase: str);
|
|
|
|
handle.unlock(passphrase: str);
|
|
|
|
valid = true;
|
|
|
|
valid = true;
|
|
|
|
} catch (_) {
|
|
|
|
} catch (e, s) {
|
|
|
|
|
|
|
|
debugPrint('Couldn\'t use recovery passphrase: ' + e.toString());
|
|
|
|
|
|
|
|
debugPrint(s.toString());
|
|
|
|
valid = false;
|
|
|
|
valid = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|