f757e35b | #include <string> |
9af49688 | #include <iostream> |
f757e35b | #include "validator.h" |
caf7db60 | bool old_validator::validate(const std::string &user_name, const std::string &token) { |
9af49688 | user_p found_user = directory_->find_user(user_name); if (!found_user) { return false; } std::string user_token = user_token_supplier_->token(found_user); return user_token == token; |
f757e35b | } |