diff --git a/Utils.cpp b/Utils.cpp index 6efe5c9c..0dd9c821 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -148,21 +148,6 @@ unsigned long CUtils::GetLongIP(const CString& sIP) { return ret; } -CString CUtils::GetHashPass() { - while (true) { - CString pass1 = CUtils::GetPass("Enter Password"); - CString pass2 = CUtils::GetPass("Confirm Password"); - - if (!pass1.Equals(pass2, true)) { - CUtils::PrintError("The supplied passwords did not match"); - } else if (pass1.empty()) { - CUtils::PrintError("You can not use an empty password"); - } else { - return pass1.MD5(); - } - } -} - // If you change this here and in GetSaltedHashPass(), // don't forget CUser::HASH_DEFAULT! const CString CUtils::sDefaultHash = "sha256"; diff --git a/Utils.h b/Utils.h index 337f7ec6..4b1ce0e7 100644 --- a/Utils.h +++ b/Utils.h @@ -63,7 +63,6 @@ public: static const CString sDefaultHash; - static CString GetHashPass(); static CString GetSaltedHashPass(CString& sSalt); static CString GetSalt(); static CString SaltedMD5Hash(const CString& sPass, const CString& sSalt);