summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-14 06:01:44 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-15 19:21:52 +0300
commit7285f6614750a984d881b325fcf36a5a8f2470b4 (patch)
tree8cb8e08c98db6b4aa69b57f34ddfc787a2a1142a
parent59f02f1d406a1238f90d072949ac07279a90e9ea (diff)
downloadhercules-7285f6614750a984d881b325fcf36a5a8f2470b4.tar.gz
hercules-7285f6614750a984d881b325fcf36a5a8f2470b4.tar.bz2
hercules-7285f6614750a984d881b325fcf36a5a8f2470b4.tar.xz
hercules-7285f6614750a984d881b325fcf36a5a8f2470b4.zip
Dont show password and pincode in @accinfo gm command.
This need for better security.
-rw-r--r--src/char/inter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char/inter.c b/src/char/inter.c
index baa000d82..b095a046d 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -527,12 +527,15 @@ void mapif_parse_accinfo2(bool success, int map_fd, int u_fd, int u_aid, int acc
inter->msg_to_fd(map_fd, u_fd, u_aid, "-- Account %d --", account_id);
inter->msg_to_fd(map_fd, u_fd, u_aid, "User: %s | GM Group: %d | State: %d", userid, group_id, state);
+// enable this if you really know what you doing.
+#if 0
if (*user_pass != '\0') { /* password is only received if your gm level is greater than the one you're searching for */
if (pin_code && *pin_code != '\0')
inter->msg_to_fd(map_fd, u_fd, u_aid, "Password: %s (PIN:%s)", user_pass, pin_code);
else
inter->msg_to_fd(map_fd, u_fd, u_aid, "Password: %s", user_pass );
}
+#endif
inter->msg_to_fd(map_fd, u_fd, u_aid, "Account e-mail: %s | Birthdate: %s", email, birthdate);
inter->msg_to_fd(map_fd, u_fd, u_aid, "Last IP: %s (%s)", last_ip, geoip->getcountry(sockt->str2ip(last_ip)));