summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 32c935d75..1a5c80679 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1024,7 +1024,7 @@ static int login_mmo_auth_new(const char *userid, const char *pass, const char s
// check if the account doesn't exist already
if( accounts->load_str(accounts, &acc, userid) ) {
- ShowNotice("Attempt of creation of an already existing account (account: %s_%c, pass: %s, received pass: %s)\n", userid, sex, acc.pass, pass);
+ ShowNotice("Attempt of creation of an already existing account (account: %s_%c)\n", userid, sex);
return 1; // 1 = Incorrect Password
}
@@ -1045,7 +1045,7 @@ static int login_mmo_auth_new(const char *userid, const char *pass, const char s
if( !accounts->create(accounts, &acc) )
return 0;
- ShowNotice("Account creation (account %s, id: %d, pass: %s, sex: %c)\n", acc.userid, acc.account_id, acc.pass, acc.sex);
+ ShowNotice("Account creation (account %s, id: %d, sex: %c)\n", acc.userid, acc.account_id, acc.sex);
if( DIFF_TICK(tick, new_reg_tick) > 0 ) {// Update the registration check.
num_regs = 0;
@@ -1114,29 +1114,29 @@ static int login_mmo_auth(struct login_session_data *sd, bool isServer)
}
if( len <= 0 ) { /** a empty password is fine, a userid is not. **/
- ShowNotice("Empty userid (received pass: '%s', ip: %s)\n", sd->passwd, ip);
+ ShowNotice("Empty userid (ip: %s)\n", ip);
return 0; // 0 = Unregistered ID
}
if( !accounts->load_str(accounts, &acc, sd->userid) ) {
- ShowNotice("Unknown account (account: %s, received pass: %s, ip: %s)\n", sd->userid, sd->passwd, ip);
+ ShowNotice("Unknown account (account: %s, ip: %s)\n", sd->userid, ip);
return 0; // 0 = Unregistered ID
}
if( !login->check_password(sd->md5key, sd->passwdenc, sd->passwd, acc.pass) ) {
- ShowNotice("Invalid password (account: '%s', pass: '%s', received pass: '%s', ip: %s)\n", sd->userid, acc.pass, sd->passwd, ip);
+ ShowNotice("Invalid password (account: '%s', ip: %s)\n", sd->userid, ip);
return 1; // 1 = Incorrect Password
}
if( acc.unban_time != 0 && acc.unban_time > time(NULL) ) {
char tmpstr[24];
timestamp2string(tmpstr, sizeof(tmpstr), acc.unban_time, login->config->date_format);
- ShowNotice("Connection refused (account: %s, pass: %s, banned until %s, ip: %s)\n", sd->userid, sd->passwd, tmpstr, ip);
+ ShowNotice("Connection refused (account: %s, banned until %s, ip: %s)\n", sd->userid, tmpstr, ip);
return 6; // 6 = Your are Prohibited to log in until %s
}
if( acc.state != 0 ) {
- ShowNotice("Connection refused (account: %s, pass: %s, state: %u, ip: %s)\n", sd->userid, sd->passwd, acc.state, ip);
+ ShowNotice("Connection refused (account: %s, state: %u, ip: %s)\n", sd->userid, acc.state, ip);
return acc.state - 1;
}
@@ -1160,7 +1160,7 @@ static int login_mmo_auth(struct login_session_data *sd, bool isServer)
int i;
if( !sd->has_client_hash ) {
- ShowNotice("Client didn't send client hash (account: %s, pass: %s, ip: %s)\n", sd->userid, sd->passwd, ip);
+ ShowNotice("Client didn't send client hash (account: %s, ip: %s)\n", sd->userid, ip);
return 5;
}
@@ -1168,7 +1168,7 @@ static int login_mmo_auth(struct login_session_data *sd, bool isServer)
sprintf(&smd5[i * 2], "%02x", sd->client_hash[i]);
smd5[32] = '\0';
- ShowNotice("Invalid client hash (account: %s, pass: %s, sent md5: %s, ip: %s)\n", sd->userid, sd->passwd, smd5, ip);
+ ShowNotice("Invalid client hash (account: %s, sent md5: %s, ip: %s)\n", sd->userid, smd5, ip);
return 5;
}
}
@@ -1436,7 +1436,7 @@ static void login_parse_request_connection(int fd, struct login_session_data* sd
type = RFIFOW(fd,82);
new_ = RFIFOW(fd,84);
- ShowInfo("Connection request of the char-server '%s' @ %u.%u.%u.%u:%u (account: '%s', pass: '%s', ip: '%s')\n", server_name, CONVIP(server_ip), server_port, sd->userid, sd->passwd, ip);
+ ShowInfo("Connection request of the char-server '%s' @ %u.%u.%u.%u:%u (account: '%s', ip: '%s')\n", server_name, CONVIP(server_ip), server_port, sd->userid, ip);
sprintf(message, "charserver - %s@%u.%u.%u.%u:%u", server_name, CONVIP(server_ip), server_port);
loginlog->log(sockt->session[fd]->client_addr, sd->userid, 100, message);