diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-06-30 20:02:40 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-06-30 20:02:40 +0000 |
commit | fdc954022d6ce22a7f566d06623f91f03289c37a (patch) | |
tree | da05a9723d45fabf97fc1ddb0a0fe1b4c389e7f7 /src | |
parent | cb64648084c9690f6bc5d1587c48a557021b0303 (diff) | |
download | mana-client-fdc954022d6ce22a7f566d06623f91f03289c37a.tar.gz mana-client-fdc954022d6ce22a7f566d06623f91f03289c37a.tar.bz2 mana-client-fdc954022d6ce22a7f566d06623f91f03289c37a.tar.xz mana-client-fdc954022d6ce22a7f566d06623f91f03289c37a.zip |
Blocking too long login names to attempt connection or registration. (Thanks Usiu)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/login.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index d69865f8..6c610e1d 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -167,6 +167,8 @@ void LoginDialog::action(const std::string& eventId) new OkDialog("Error", "Enter a username first"); } else if (user.length() < 4) { new OkDialog("Error", "The username needs to be at least 4 characters"); + } else if (user.length() > LEN_USERNAME -1 ) { + new OkDialog("Error", "The username needs to be less than 25 characters long."); } else { server_login(user + "_M", passField->getText()); close_session(); |