use strict comparaison

This commit is contained in:
Frédéric FRANCE 2018-10-18 21:24:06 +02:00 committed by GitHub
parent d4bc53660b
commit b0e24e2b8d
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->SetIdentity($_GET['openid_identity']);
$openid_validation_result = $openid->ValidateWithServer();
if ($openid_validation_result == true)
if ($openid_validation_result === true)
{
// 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
$error = $openid->GetError();