summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/loginhandler.h8
-rw-r--r--src/net/tmwserv/loginhandler.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h
index 2ac34c1e..bef88094 100644
--- a/src/net/loginhandler.h
+++ b/src/net/loginhandler.h
@@ -63,6 +63,14 @@ class LoginHandler
*/
virtual int supportedOptionalActions() const = 0;
+ virtual unsigned int getMinUserNameLength() const { return 4; };
+
+ virtual unsigned int getMaxUserNameLength() const { return 25; };
+
+ virtual unsigned int getMinPasswordLength() const { return 4; };
+
+ virtual unsigned int getMaxPasswordLength() const { return 25; };
+
virtual void loginAccount(LoginData *loginData) = 0;
virtual void logout() = 0;
diff --git a/src/net/tmwserv/loginhandler.h b/src/net/tmwserv/loginhandler.h
index e9887e1a..ae1e7bfb 100644
--- a/src/net/tmwserv/loginhandler.h
+++ b/src/net/tmwserv/loginhandler.h
@@ -47,6 +47,10 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler
int supportedOptionalActions() const
{ return Unregister | ChangeEmail | SetEmailOnRegister; }
+ unsigned int getMaxUserNameLength() const { return 15; };
+
+ unsigned int getMinPasswordLength() const { return 6; };
+
void loginAccount(LoginData *loginData);
void logout();