summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-04 01:04:57 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-04 01:05:51 +0300
commitd60a990f282693412fcdfd62ee4152c107cbf5a9 (patch)
treec10334b998f65d8606e3588917acb51bb287415e /src/char
parent0622261073b6f4f0160cb0df150d3e07483d9b1b (diff)
downloadhercules-d60a990f282693412fcdfd62ee4152c107cbf5a9.tar.gz
hercules-d60a990f282693412fcdfd62ee4152c107cbf5a9.tar.bz2
hercules-d60a990f282693412fcdfd62ee4152c107cbf5a9.tar.xz
hercules-d60a990f282693412fcdfd62ee4152c107cbf5a9.zip
Fix pincode check. Was broken in commit 2a05dbfc2f62c6bbac7983dcec120502914567f1.
Diffstat (limited to 'src/char')
-rw-r--r--src/char/pincode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/char/pincode.c b/src/char/pincode.c
index 01c1f482c..3b22a0a8c 100644
--- a/src/char/pincode.c
+++ b/src/char/pincode.c
@@ -82,6 +82,7 @@ void pincode_check(int fd, struct char_session_data* sd)
return;
safestrncpy(pin, RFIFOP(fd, 6), sizeof(pin));
+ pincode->decrypt(sd->pincode_seed, pin);
if (pincode->check_blacklist && pincode->isBlacklisted(pin)) {
pincode->loginstate(fd, sd, PINCODE_LOGIN_RESTRICT_PW);