Coding style fixes
This commit is contained in:
parent
2b4ecbaba0
commit
f61793aa14
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ OC_User::useBackend('openid');
|
|||
//check for results from openid requests
|
||||
if(isset($_GET['openid_mode']) and $_GET['openid_mode'] == 'id_res'){
|
||||
OCP\Util::writeLog('user_openid','openid retured',OCP\Util::DEBUG);
|
||||
$openid = new SimpleOpenID;
|
||||
$openid = new SimpleOpenID();
|
||||
$openid->SetIdentity($_GET['openid_identity']);
|
||||
$openid_validation_result = $openid->ValidateWithServer();
|
||||
if ($openid_validation_result == true){ // OK HERE KEY IS VALID
|
||||
|
|
|
@ -37,7 +37,7 @@ class OC_USER_OPENID extends OC_User_Backend {
|
|||
*/
|
||||
public function checkPassword( $uid, $password ){
|
||||
// Get identity from user and redirect browser to OpenID Server
|
||||
$openid = new SimpleOpenID;
|
||||
$openid = new SimpleOpenID();
|
||||
$openid->SetIdentity($uid);
|
||||
$openid->SetTrustRoot('http://' . OCP\Util::getServerHost());
|
||||
if ($openid->GetOpenIDServer()){
|
||||
|
|
Loading…
Reference in a new issue