This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  72e4db6641375fc4a5163181f07a1367af15e176 (commit)
      from  533f0942e19a486e239bd0f7f3033f2820af0512 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=72e4db6641375fc4a5163181f07a1367af15e176

commit 72e4db6641375fc4a5163181f07a1367af15e176
Author: Franck Villaume <[email protected]>
Date:   Mon May 8 18:36:00 2017 +0200

    SOAP API: extend support for auth* plugins, rename userid -> username as 
parameter expected

diff --git a/src/www/soap/index.php b/src/www/soap/index.php
index 9d7d534..e1c624f 100644
--- a/src/www/soap/index.php
+++ b/src/www/soap/index.php
@@ -94,7 +94,7 @@ $server->wsdl->addComplexType(
 // session/authentication
 $server->register(
        'login',
-       array('userid'=>'xsd:string','passwd'=>'xsd:string'),
+       array('username'=>'xsd:string','passwd'=>'xsd:string'),
        array('loginResponse'=>'xsd:string'),
        $uri,
        $uri.'#login');
@@ -174,20 +174,20 @@ function continue_session($sessionKey) {
 /**
  * login - Logs in a SOAP client
  *
- * @param      string  $userid userid  The user's unix id
- * @param      string  $passwd passwd  The user's passwd in clear text
+ * @param      string  $username       username        The user's unix id
+ * @param      string  $passwd         passwd          The user's passwd in 
clear text
  *
  * @return     string  the session key
  */
-function login($userid, $passwd) {
+function login($username, $passwd) {
        global $feedback, $session_ser;
 
        setlocale (LC_TIME, _('en_US'));
 
-       $res = session_check_credentials_in_database($userid, $passwd);
+       $res = session_login_valid($username, $passwd);
 
        if (!$res) {
-               return new soap_fault('1001', 'user', "Unable to log in with 
userid of ".$userid, $feedback);
+               return new soap_fault('1001', 'user', 'Unable to log in with 
username of '.$username, $feedback);
        }
 
        return session_build_session_token(user_getid());

-----------------------------------------------------------------------

Summary of changes:
 src/www/soap/index.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to