fixup! Begin CLI
This commit is contained in:
父節點
5e5994fae4
當前提交
7b2335e728
2
cli.cpp
2
cli.cpp
@ -65,7 +65,7 @@ bool CLI::user_change_pw(const std::vector<std::string> &args)
|
||||
Random r;
|
||||
Authenticator auth{*userDao};
|
||||
user->salt = r.getRandom(AUTH_DEFAULT_SALT_SIZE);
|
||||
user->password = auth.hash(password, user->sault);
|
||||
user->password = auth.hash(password, user->salt);
|
||||
if(user->password.empty())
|
||||
{
|
||||
std::cout << "Error during hashing - Got empty hash";
|
||||
|
Loading…
Reference in New Issue
Block a user