diff --git a/cli.cpp b/cli.cpp index 5b8f4a9..34ad04e 100644 --- a/cli.cpp +++ b/cli.cpp @@ -65,7 +65,7 @@ bool CLI::user_change_pw(const std::vector &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";