Revert "feat(Core/Auth): add AccountInfo helper (#5640)" (#5971)

This reverts commit e50754d804.
This commit is contained in:
Kitzunu
2021-05-20 23:23:50 +02:00
committed by GitHub
parent dd69dcb1d8
commit fe6db2ff96
5 changed files with 399 additions and 393 deletions

View File

@@ -14,7 +14,6 @@
#include "SRP6.h"
class ACE_INET_Addr;
class Fields;
struct Realm;
enum eStatus
@@ -27,21 +26,6 @@ enum eStatus
STATUS_CLOSED
};
struct AccountInfo
{
void LoadResult(Field* fields);
uint32 Id = 0;
std::string Login;
bool IsLockedToIP = false;
std::string LockCountry;
std::string LastIP;
uint32 FailedLogins = 0;
bool IsBanned = false;
bool IsPermanenetlyBanned = false;
AccountTypes SecurityLevel = SEC_PLAYER;
};
// Handle login commands
class AuthSocket: public RealmSocket::Session
{
@@ -81,7 +65,7 @@ private:
eStatus _status;
AccountInfo _accountInfo;
std::string _login;
Optional<std::vector<uint8>> _totpSecret;
// Since GetLocaleByName() is _NOT_ bijective, we have to store the locale as a string. Otherwise we can't differ
@@ -90,6 +74,7 @@ private:
std::string _os;
uint16 _build;
uint8 _expversion;
AccountTypes _accountSecurityLevel;
};
#endif