From 8d9cc4b1f530f3bb0abfe05d06e4b9db5bae8dbc Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Tue, 26 Jul 2011 12:35:07 +0200 Subject: [PATCH] empty pass check fix for hmac-sha1-shared auth --- world/net/person.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world/net/person.c b/world/net/person.c index a2ce76c..24e2e98 100644 --- a/world/net/person.c +++ b/world/net/person.c @@ -763,7 +763,7 @@ checkPassword(try, method, salt, args, cb, varargs cbargs) { if (IS_NEWBIE) ARETURN(1) // could auto-register here.. # endif #endif - if (!try || try == "" || v("password") == "") ARETURN(0) + if (!try || try == "" || (method != "hmac-sha1-shared") && v("password") == "") ARETURN(0) switch(method) { #if __EFUN_DEFINED__(sha1)