diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-19 14:18:04 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-19 14:18:04 -0600 |
commit | 7fc4b120bf35daa5d3d96eb565ec7d79ce153653 (patch) | |
tree | 159b576c6cb87486e043d5ba103b4b634ef1b230 /src/net | |
parent | 72883051f1c947c324e259dc5e323ca3dfaf3737 (diff) | |
download | mana-client-7fc4b120bf35daa5d3d96eb565ec7d79ce153653.tar.gz mana-client-7fc4b120bf35daa5d3d96eb565ec7d79ce153653.tar.bz2 mana-client-7fc4b120bf35daa5d3d96eb565ec7d79ce153653.tar.xz mana-client-7fc4b120bf35daa5d3d96eb565ec7d79ce153653.zip |
Fix RegisterDialog tab order and detail lengths
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/loginhandler.h | 8 | ||||
-rw-r--r-- | src/net/tmwserv/loginhandler.h | 4 |
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(); |