mirror of
https://github.com/znc/znc.git
synced 2026-05-09 23:04:47 +02:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user