fixes #1016 API method pwg.session.login gets same behavior a web login form, regarding empty password

This commit is contained in:
plegall
2019-08-26 15:55:09 +02:00
parent 18460716e3
commit bf39de788a
+4 -1
View File
@@ -320,7 +320,10 @@ function ws_addDefaultMethods( $arr )
$service->addMethod(
'pwg.session.login',
'ws_session_login',
array('username', 'password'),
array(
'username' => array(),
'password' => array('default'=>null),
),
'Tries to login the user.',
$ws_functions_root . 'pwg.php',
array('post_only'=>true)