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())
while (masterPassword.empty())
{
masterPassword = getPassword("Please enter your MASTER password: ");
if (!keyManager.load(masterPassword))
{
if (masterPassword.empty() || !keyManager.load(masterPassword))
while (true)
{
masterPassword = getPassword("Please enter your MASTER password: ");
if (keyManager.load(masterPassword))
break;
cout << "Password invalid. Try again." << endl;
masterPassword.clear();
}
}
}
else
{
while (masterPassword.empty())

Loading…
Cancel
Save