fixup! Begin CLI

This commit is contained in:
Albert S. 2021-09-26 15:07:06 +02:00
parent 5e5994fae4
commit 7b2335e728

View File

@ -65,7 +65,7 @@ bool CLI::user_change_pw(const std::vector<std::string> &args)
Random r; Random r;
Authenticator auth{*userDao}; Authenticator auth{*userDao};
user->salt = r.getRandom(AUTH_DEFAULT_SALT_SIZE); 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()) if(user->password.empty())
{ {
std::cout << "Error during hashing - Got empty hash"; std::cout << "Error during hashing - Got empty hash";