fixup! Begin CLI
This commit is contained in:
parent
5e5994fae4
commit
7b2335e728
2
cli.cpp
2
cli.cpp
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user