diff options
Diffstat (limited to 'src/net/manaserv/loginhandler.h')
-rw-r--r-- | src/net/manaserv/loginhandler.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/net/manaserv/loginhandler.h b/src/net/manaserv/loginhandler.h index 1a929c96..75e2daf3 100644 --- a/src/net/manaserv/loginhandler.h +++ b/src/net/manaserv/loginhandler.h @@ -47,9 +47,15 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler int supportedOptionalActions() const { return Unregister | ChangeEmail | SetEmailOnRegister; } - unsigned int getMaxUserNameLength() const { return 15; }; + void getRegistrationDetails(); - unsigned int getMinPasswordLength() const { return 6; }; + unsigned int getMinUserNameLength() const; + + unsigned int getMaxUserNameLength() const; + + unsigned int getMinPasswordLength() const; + + unsigned int getMaxPasswordLength() const; void loginAccount(LoginData *loginData); @@ -79,6 +85,10 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler void readUpdateHost(Net::MessageIn &msg); LoginData *mLoginData; + unsigned int mMinUserNameLength; + unsigned int mMaxUserNameLength; + unsigned int mMinPasswordLength; + unsigned int mMaxPasswordLength; }; } // namespace ManaServ |