mirror of git://git.psyced.org/git/psyced
empty pass check fix for hmac-sha1-shared auth
This commit is contained in:
parent
c71c6ada46
commit
8d9cc4b1f5
|
@ -763,7 +763,7 @@ checkPassword(try, method, salt, args, cb, varargs cbargs) {
|
||||||
if (IS_NEWBIE) ARETURN(1) // could auto-register here..
|
if (IS_NEWBIE) ARETURN(1) // could auto-register here..
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
if (!try || try == "" || v("password") == "") ARETURN(0)
|
if (!try || try == "" || (method != "hmac-sha1-shared") && v("password") == "") ARETURN(0)
|
||||||
|
|
||||||
switch(method) {
|
switch(method) {
|
||||||
#if __EFUN_DEFINED__(sha1)
|
#if __EFUN_DEFINED__(sha1)
|
||||||
|
|
Loading…
Reference in New Issue