fixup! Begin CLI

Este commit está contenido en:
Albert S. 2021-09-26 15:07:06 +02:00
padre 5e5994fae4
commit 7b2335e728

Ver fichero

@ -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";