Remove the old, unused function CUtils::GetHashPass()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1642 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-10-05 20:03:20 +00:00
parent 24978bd0eb
commit 7361b87130
2 changed files with 0 additions and 16 deletions
-15
View File
@@ -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";
-1
View File
@@ -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);