empty pass check fix for hmac-sha1-shared auth

This commit is contained in:
Gabor Adam Toth 2011-07-26 12:35:07 +02:00
parent c71c6ada46
commit 8d9cc4b1f5

View File

@ -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)