dolibarr 20.0.2
functions_googleoauth.php File Reference

Authentication functions for Google OAuth mode using "Server flow" Another method could be to use the "Implicit flow" using Google-Signin library. More...

Go to the source code of this file.

Functions

 check_user_password_googleoauth ($usertotest, $passwordtotest, $entitytotest)
 Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_loginmesg"].
 

Detailed Description

Authentication functions for Google OAuth mode using "Server flow" Another method could be to use the "Implicit flow" using Google-Signin library.

Definition in file functions_googleoauth.php.

Function Documentation

◆ check_user_password_googleoauth()

check_user_password_googleoauth ( $usertotest,
$passwordtotest,
$entitytotest )

Check validity of user/password/entity If test is ko, reason must be filled into $_SESSION["dol_loginmesg"].

Parameters
string$usertotestLogin
string$passwordtotestPassword
int$entitytotestNumber of instance (always 1 if module multicompany not enabled)
Returns
string Login if OK, '' if KO

Definition at line 40 of file functions_googleoauth.php.

References dol_syslog(), dol_verifyHash(), GETPOST(), and GETPOSTINT().