#include <database-files.h>
◆ AuthDatabaseFiles()
AuthDatabaseFiles::AuthDatabaseFiles |
( |
const std::string & | savedir | ) |
|
◆ ~AuthDatabaseFiles()
virtual AuthDatabaseFiles::~AuthDatabaseFiles |
( |
| ) |
|
|
virtualdefault |
◆ createAuth()
bool AuthDatabaseFiles::createAuth |
( |
AuthEntry & | authEntry | ) |
|
|
virtual |
◆ deleteAuth()
bool AuthDatabaseFiles::deleteAuth |
( |
const std::string & | name | ) |
|
|
virtual |
◆ getAuth()
bool AuthDatabaseFiles::getAuth |
( |
const std::string & | name, |
|
|
AuthEntry & | res ) |
|
virtual |
◆ listNames()
void AuthDatabaseFiles::listNames |
( |
std::vector< std::string > & | res | ) |
|
|
virtual |
◆ readAuthFile()
bool AuthDatabaseFiles::readAuthFile |
( |
| ) |
|
|
private |
◆ reload()
void AuthDatabaseFiles::reload |
( |
| ) |
|
|
virtual |
◆ saveAuth()
bool AuthDatabaseFiles::saveAuth |
( |
const AuthEntry & | authEntry | ) |
|
|
virtual |
◆ writeAuthFile()
bool AuthDatabaseFiles::writeAuthFile |
( |
| ) |
|
|
private |
References DIR_DELIM, infostream, AuthEntry::last_login, m_auth_list, m_savedir, AuthEntry::name, AuthEntry::password, AuthEntry::privileges, fs::safeWriteToFile(), and str_join().
Referenced by createAuth(), deleteAuth(), and saveAuth().
◆ m_auth_list
std::unordered_map<std::string, AuthEntry> AuthDatabaseFiles::m_auth_list |
|
private |
◆ m_savedir
std::string AuthDatabaseFiles::m_savedir |
|
private |
The documentation for this class was generated from the following files: