Authenticator: pbkd5(): Mark as const
这个提交包含在:
父节点
ac56b2f61d
当前提交
250e4a94a6
@ -37,7 +37,7 @@ void Authenticator::incFailureCount(std::string ip)
|
||||
fl.lastfail = time(nullptr);
|
||||
}
|
||||
|
||||
std::vector<char> Authenticator::pbkdf5(std::string password, const std::vector<char> &salt)
|
||||
std::vector<char> Authenticator::pbkdf5(std::string password, const std::vector<char> &salt) const
|
||||
{
|
||||
unsigned char hash[32];
|
||||
const EVP_MD *sha256 = EVP_sha256();
|
||||
|
@ -18,7 +18,7 @@ class Authenticator
|
||||
UserDao *userDao;
|
||||
bool isBanned(std::string ip);
|
||||
void incFailureCount(std::string ip);
|
||||
std::vector<char> pbkdf5(std::string password, const std::vector<char> &salt);
|
||||
std::vector<char> pbkdf5(std::string password, const std::vector<char> &salt) const;
|
||||
|
||||
public:
|
||||
Authenticator(UserDao &userDao);
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户