Skip to content
Permalink
Browse files

fixes #1016 API method pwg.session.login gets same behavior a web log…

…in form, regarding empty password
  • Loading branch information...
plegall committed Aug 26, 2019
1 parent 1846071 commit bf39de788a2ccf85a32981db10254d20776c62e9
Showing with 4 additions and 1 deletion.
  1. +4 −1 ws.php
5 ws.php
@@ -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)

0 comments on commit bf39de7

Please sign in to comment.
You can’t perform that action at this time.