mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-12-05 00:22:19 +00:00
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..
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user