Browse Source

Coding style fixes

remotes/origin/stable45
Bart Visscher 14 years ago
parent
commit
f61793aa14
  1. 2
      apps/user_openid/appinfo/app.php
  2. 2
      apps/user_openid/user_openid.php

2
apps/user_openid/appinfo/app.php

@ -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

2
apps/user_openid/user_openid.php

@ -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…
Cancel
Save