summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2008-04-21 16:18:03 +0000
committerYohann Ferreira <bertram@cegetel.net>2008-04-21 16:18:03 +0000
commitac1a456a90d06ba7765716643257ec33cc513f76 (patch)
tree5cc5a9ce24942bcac3d2fa4b45d8d92375313cc1 /src/main.cpp
parent24681ad4312d804aa06c8ace7d1a9f2f9605a4eb (diff)
downloadmana-ac1a456a90d06ba7765716643257ec33cc513f76.tar.gz
mana-ac1a456a90d06ba7765716643257ec33cc513f76.tar.bz2
mana-ac1a456a90d06ba7765716643257ec33cc513f76.tar.xz
mana-ac1a456a90d06ba7765716643257ec33cc513f76.zip
Added password encryption client-side using SHA256.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9ac4b9a3..d5d99f31 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -532,7 +532,7 @@ void accountLogin(LoginData *loginData)
// Send login infos
Net::AccountServer::login(accountServerConnection, 0,
- loginData->username, loginData->password);
+ loginData->username,loginData->password);
// Clear the password, avoids auto login when returning to login
loginData->password = "";
@@ -565,7 +565,7 @@ void accountUnRegister(LoginData *loginData)
Net::registerHandler(&logoutHandler);
Net::AccountServer::Account::unregister(loginData->username,
- loginData->password);
+ loginData->password);
}
@@ -573,7 +573,8 @@ void accountChangePassword(LoginData *loginData)
{
Net::registerHandler(&loginHandler);
- Net::AccountServer::Account::changePassword(loginData->password,
+ Net::AccountServer::Account::changePassword(loginData->username,
+ loginData->password,
loginData->newPassword);
}