Merge pull request #9811 from frederic34/patch-24

use strict comparaison
This commit is contained in:
Laurent Destailleur 2018-10-19 13:17:24 +02:00 committed by GitHub
commit c13e555d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ function check_user_password_openid($usertotest,$passwordtotest,$entitytotest)
$openid = new SimpleOpenID(); $openid = new SimpleOpenID();
$openid->SetIdentity($_GET['openid_identity']); $openid->SetIdentity($_GET['openid_identity']);
$openid_validation_result = $openid->ValidateWithServer(); $openid_validation_result = $openid->ValidateWithServer();
if ($openid_validation_result == true) if ($openid_validation_result === true)
{ {
// OK HERE KEY IS VALID // OK HERE KEY IS VALID
@ -90,7 +90,7 @@ function check_user_password_openid($usertotest,$passwordtotest,$entitytotest)
} }
} }
} }
else if($openid->IsError() == true) else if($openid->IsError() === true)
{ {
// ON THE WAY, WE GOT SOME ERROR // ON THE WAY, WE GOT SOME ERROR
$error = $openid->GetError(); $error = $openid->GetError();