Conflicts:
	htdocs/core/login/functions_openid.php
This commit is contained in:
Frédéric FRANCE 2021-03-01 18:06:03 +01:00 committed by Laurent Destailleur
parent 363e069a7a
commit e1ff1c736c

View File

@ -43,8 +43,7 @@ function check_user_password_openid($usertotest, $passwordtotest, $entitytotest)
$login = '';
// Get identity from user and redirect browser to OpenID Server
if (GETPOSISSET('username'))
{
if (GETPOSTISSET('username')) {
$openid = new SimpleOpenID();
$openid->SetIdentity($_POST['username']);
$protocol = ($conf->file->main_force_https ? 'https://' : 'http://');
@ -61,10 +60,8 @@ function check_user_password_openid($usertotest, $passwordtotest, $entitytotest)
return false;
}
return false;
}
// Perform HTTP Request to OpenID server to validate key
elseif ($_GET['openid_mode'] == 'id_res')
{
} elseif ($_GET['openid_mode'] == 'id_res') {
// Perform HTTP Request to OpenID server to validate key
$openid = new SimpleOpenID();
$openid->SetIdentity($_GET['openid_identity']);
$openid_validation_result = $openid->ValidateWithServer();