2021-08-19 23:55:36 +02:00
|
|
|
#include "db_based_user_manager.h"
|
|
|
|
|
|
|
|
#include "db_based_user.h"
|
|
|
|
|
|
|
|
User *DBBasedUserManager::create_user() {
|
|
|
|
User *u = new DBBasedUser();
|
|
|
|
|
|
|
|
return u;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DBBasedUserManager::load_all() {
|
2021-08-20 01:33:09 +02:00
|
|
|
DBBasedUser::load_all();
|
2021-08-19 23:55:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void DBBasedUserManager::set_table_name(const std::string &path) {
|
|
|
|
//DBBasedUser::set_path(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DBBasedUserManager::migrate() {
|
|
|
|
DBBasedUser u;
|
|
|
|
u.migrate();
|
|
|
|
}
|
|
|
|
|
|
|
|
DBBasedUserManager::DBBasedUserManager() :
|
|
|
|
UserManager() {
|
|
|
|
|
|
|
|
printf("Using DBBasedUserManager.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
DBBasedUserManager::~DBBasedUserManager() {
|
|
|
|
}
|