summaryrefslogtreecommitdiff
path: root/src/net/ea/loginhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/loginhandler.cpp')
-rw-r--r--src/net/ea/loginhandler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index c00301c7a..ac4f0466c 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -70,7 +70,7 @@ void LoginHandler::loginAccount(LoginData *loginData)
// with a different config.
loginData->resetCharacterSlots();
- sendLoginRegister(loginData->username, loginData->password);
+ sendLoginRegister(loginData->username, loginData->password, "");
}
}
@@ -114,7 +114,7 @@ void LoginHandler::registerAccount(LoginData *loginData)
break;
}
- sendLoginRegister(username, loginData->password);
+ sendLoginRegister(username, loginData->password, loginData->email);
}
Worlds LoginHandler::getWorlds() const
@@ -261,6 +261,9 @@ void LoginHandler::processLoginError(Net::MessageIn &msg)
case 10:
errorMessage = _("Wrong name.");
break;
+ case 11:
+ errorMessage = _("Incorrect email.");
+ break;
case 99:
errorMessage = _("Username permanently erased.");
break;