7

I like to use very strong passwords, but occasionally make a typo when entering them. Is there a setting I can use so that simplewallet will force me to enter my desired password twice (and ensure they match) when creating a new wallet?

1
  • I would argue that this question can be closed (eventually) because the issue will be addressed by both the Monero GUI and whenever the new simplewallet is released (probably with the next update), so the question will loose any utility.
    – Ginger Ale
    Commented Aug 9, 2016 at 9:41

1 Answer 1

10

That feature does not yet exist, but there is an open issue for it in GitHub and a fix is being worked on.

+bool password_container::read_from_tty_double_check(const char *message) {
+    std::string pass1;
+    std::string pass2;
+    bool match=false;
+    bool doNotVerifyEntry=false;
+    do{
+        if (message)
+            std::cout << message <<": ";
+        if (!password_container::read_from_tty(pass1))
+            return false;
+        if (m_verify==true){//double check password; 
+            if (message)
+                std::cout << message << ": ";
+            if (!password_container::read_from_tty(pass2))
+                return false;
+            if(pass1!=pass2){ //new password entered did not match
+
+                std::cout << "Passwords do not match" << std::endl;
+                pass1="";
+                pass2="";
+                match=false;
+            }
+            else{//new password matches
+                match=true;
+            }
+        }
+        else
+            doNotVerifyEntry=true; //do not verify
+            //No need to verify password entered at this point in the code 
+            
+    }while(match==false && doNotVerifyEntry==false);
+
+    m_password=pass1;
+    return true;
+  }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.