Make webadmin generate salted passwords, too
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1139 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1 parent
c07347b9a0
commit
1c2c52651a
3 files changed
+12
-4
No files matched your search
@@ -1023,7 +1023,9 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
|
||||
}
|
||||
|
||||
if (!sArg.empty()) {
|
||||
pNewUser->SetPass(sArg.MD5(), true);
|
||||
CString sSalt = CUtils::GetSalt();
|
||||
CString sSaltedPass = sArg + sSalt;
|
||||
pNewUser->SetPass(sSaltedPass.MD5(), true, sSalt);
|
||||
}
|
||||
|
||||
VCString vsArgs;
|
||||
|
||||
Reference in new issue
Block a user