Implement missing get_user in UserManager.

This commit is contained in:
Relintai 2021-08-05 18:25:12 +02:00
parent b55cb85855
commit 45af98ab18

View File

@ -37,6 +37,10 @@ void UserManager::remove_user(User *user) {
} }
} }
User *UserManager::get_user(const std::string &user_name) {
return _users[user_name];
}
void UserManager::clear() { void UserManager::clear() {
SessionManager *sm = SessionManager::get_singleton(); SessionManager *sm = SessionManager::get_singleton();