summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/loginhandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index 92a2e9f35..2fc177476 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -152,13 +152,15 @@ void LoginHandler::loginOrRegister(LoginData *const data) const
loginAccount(data);
const bool remember = data->remember;
- if (remember) {
+ if (remember)
+ {
serverConfig.setValue("username", data->username);
#ifdef SAVE_PASSWORD
serverConfig.setValue("password", data->password);
#endif
}
- else {
+ else
+ {
serverConfig.setValue("username", "");
#ifdef SAVE_PASSWORD
serverConfig.setValue("password", "");