Browse Source

Fix #2031

cl-refactor
Gav Wood 10 years ago
parent
commit
9dd24197a4
  1. 13
      eth/main.cpp

13
eth/main.cpp

@ -693,15 +693,16 @@ int main(int argc, char** argv)
} }
if (keyManager.exists()) if (keyManager.exists())
while (masterPassword.empty()) {
{ if (masterPassword.empty() || !keyManager.load(masterPassword))
masterPassword = getPassword("Please enter your MASTER password: "); while (true)
if (!keyManager.load(masterPassword))
{ {
masterPassword = getPassword("Please enter your MASTER password: ");
if (keyManager.load(masterPassword))
break;
cout << "Password invalid. Try again." << endl; cout << "Password invalid. Try again." << endl;
masterPassword.clear();
} }
} }
else else
{ {
while (masterPassword.empty()) while (masterPassword.empty())

Loading…
Cancel
Save