diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-12-04 14:50:36 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-04 14:51:07 -0700 |
commit | dfbb70d4884c4e48664f1df7bf73819a00a707b7 (patch) | |
tree | 1a99f36a191d2a9202248eb65a9f243d83318b7b /src/net | |
parent | 625d8282af5a4da4b6d5c9a31e542680acd5e7b3 (diff) | |
download | mana-dfbb70d4884c4e48664f1df7bf73819a00a707b7.tar.gz mana-dfbb70d4884c4e48664f1df7bf73819a00a707b7.tar.bz2 mana-dfbb70d4884c4e48664f1df7bf73819a00a707b7.tar.xz mana-dfbb70d4884c4e48664f1df7bf73819a00a707b7.zip |
Remove password length info for manaserv
Also fix defaults.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/loginhandler.h | 2 | ||||
-rw-r--r-- | src/net/loginhandler.h | 2 | ||||
-rw-r--r-- | src/net/manaserv/loginhandler.cpp | 14 | ||||
-rw-r--r-- | src/net/manaserv/loginhandler.h | 6 |
4 files changed, 5 insertions, 19 deletions
diff --git a/src/net/ea/loginhandler.h b/src/net/ea/loginhandler.h index 16c5fe95..00b9c6c3 100644 --- a/src/net/ea/loginhandler.h +++ b/src/net/ea/loginhandler.h @@ -51,6 +51,8 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler void getRegistrationDetails(); + unsigned int getMaxPasswordLength() const { return 25; }; + void loginAccount(LoginData *loginData); void logout(); diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h index 6d42088d..a560c643 100644 --- a/src/net/loginhandler.h +++ b/src/net/loginhandler.h @@ -71,7 +71,7 @@ class LoginHandler virtual unsigned int getMinPasswordLength() const { return 4; }; - virtual unsigned int getMaxPasswordLength() const { return 25; }; + virtual unsigned int getMaxPasswordLength() const { return 255; }; virtual void loginAccount(LoginData *loginData) = 0; diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp index 9abef806..1cb9baff 100644 --- a/src/net/manaserv/loginhandler.cpp +++ b/src/net/manaserv/loginhandler.cpp @@ -216,8 +216,8 @@ void LoginHandler::handleMessage(Net::MessageIn &msg) { mMinUserNameLength = msg.readInt8(); mMaxUserNameLength = msg.readInt8(); - mMinPasswordLength = msg.readInt8(); - mMaxPasswordLength = msg.readInt8(); + msg.readInt8(); + msg.readInt8(); std::string captchaURL = msg.readString(); std::string captchaInstructions = msg.readString(); @@ -357,16 +357,6 @@ unsigned int LoginHandler::getMaxUserNameLength() const return mMaxUserNameLength; } -unsigned int LoginHandler::getMinPasswordLength() const -{ - return mMinPasswordLength; -} - -unsigned int LoginHandler::getMaxPasswordLength() const -{ - return mMaxPasswordLength; -} - void LoginHandler::loginAccount(LoginData *loginData) { mLoginData = loginData; diff --git a/src/net/manaserv/loginhandler.h b/src/net/manaserv/loginhandler.h index 75e2daf3..22869282 100644 --- a/src/net/manaserv/loginhandler.h +++ b/src/net/manaserv/loginhandler.h @@ -53,10 +53,6 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler unsigned int getMaxUserNameLength() const; - unsigned int getMinPasswordLength() const; - - unsigned int getMaxPasswordLength() const; - void loginAccount(LoginData *loginData); void logout(); @@ -87,8 +83,6 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler LoginData *mLoginData; unsigned int mMinUserNameLength; unsigned int mMaxUserNameLength; - unsigned int mMinPasswordLength; - unsigned int mMaxPasswordLength; }; } // namespace ManaServ |