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