mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-04 03:13:52 +00:00
* Beginning of cleanup * More cleanup * More cleanup * Enc cleanup * client manager cleanup * client cleanup * More cleanup * More cleanup * Cleanup * More cleanup, account context, account management * Remove positional fmt bindings * Use LoginAccountContext * Update loginserver_webserver.cpp * Remove comments * Port CreateLoginServerAccount to repositories * More cleanup * More cleanup * More cleanup * More cleanup * Remove a ton of functions * More cleanup * More cleanup * More cleanup * Cleanup SendClientAuthToWorld * Consolidate world server logic * Update login_accounts_repository.h * Update login_accounts_repository.h * Move api tokens to repositories * Cleanup options * Move everything else to repositories * Update account_management.cpp * uint64 account * Update login_schema.sql * Fix * Update world_server.cpp * auto
34 lines
990 B
C++
34 lines
990 B
C++
#ifndef EQEMU_ACCOUNT_MANAGEMENT_H
|
|
#define EQEMU_ACCOUNT_MANAGEMENT_H
|
|
|
|
#include "iostream"
|
|
#include "../common/types.h"
|
|
#include "login_types.h"
|
|
#include "encryption.h"
|
|
#include "login_server.h"
|
|
|
|
extern LoginServer server;
|
|
extern Database database;
|
|
|
|
class AccountManagement {
|
|
public:
|
|
static uint64 CreateLoginServerAccount(LoginAccountContext c);
|
|
static uint64 CheckLoginserverUserCredentials(LoginAccountContext c);
|
|
static bool UpdateLoginserverUserCredentials(LoginAccountContext c);
|
|
static uint64 CheckExternalLoginserverUserCredentials(LoginAccountContext c);
|
|
static bool UpdateLoginserverWorldAdminAccountPasswordByName(LoginAccountContext c);
|
|
static uint64 HealthCheckUserLogin();
|
|
|
|
static bool CreateLoginserverWorldAdminAccount(
|
|
const std::string &username,
|
|
const std::string &password,
|
|
const std::string &email,
|
|
const std::string &first_name = "",
|
|
const std::string &last_name = "",
|
|
const std::string &ip_address = ""
|
|
);
|
|
};
|
|
|
|
|
|
#endif //EQEMU_ACCOUNT_MANAGEMENT_H
|