dolibarr  20.0.0-alpha
Functions
ws.lib.php File Reference

Set of functions for manipulating web services. More...

Go to the source code of this file.

Functions

 check_authentication ($authentication, &$error, &$errorcode, &$errorlabel)
 Check authentication array and set error, errorcode, errorlabel. More...
 

Detailed Description

Set of functions for manipulating web services.

Definition in file ws.lib.php.

Function Documentation

◆ check_authentication()

check_authentication (   $authentication,
$error,
$errorcode,
$errorlabel 
)

Check authentication array and set error, errorcode, errorlabel.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array with authentication information ('login'=>,'password'=>,'entity'=>,'dolibarrkey'=>)
int$errorNumber of errors
string$errorcodeError string code
string$errorlabelError string label
Returns
User Return user object identified by login/pass/entity into authentication array

Definition at line 36 of file ws.lib.php.