summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 14:29:34 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 14:29:34 +0200
commit3f9ac6405a4823349e30be1f9d874ce813ae53f0 (patch)
treedb7591ceffba8fb1cbc33bda949471b5e62197be /apps/user_openid
parent8a69116e94be36640896ae1503f53acc303c20df (diff)
downloadnextcloud-server-3f9ac6405a4823349e30be1f9d874ce813ae53f0.tar.gz
nextcloud-server-3f9ac6405a4823349e30be1f9d874ce813ae53f0.zip
port some of the log call to the new public api
more to come
Diffstat (limited to 'apps/user_openid')
-rw-r--r--apps/user_openid/appinfo/app.php14
-rw-r--r--apps/user_openid/user.php2
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/user_openid/appinfo/app.php b/apps/user_openid/appinfo/app.php
index cbcbe544221..730039570a0 100644
--- a/apps/user_openid/appinfo/app.php
+++ b/apps/user_openid/appinfo/app.php
@@ -26,14 +26,14 @@ OC_User::useBackend('openid');
//check for results from openid requests
if(isset($_GET['openid_mode']) and $_GET['openid_mode'] == 'id_res'){
- OC_Log::write('user_openid','openid retured',OC_Log::DEBUG);
+ OCP\Util::writeLog('user_openid','openid retured',OC_Log::DEBUG);
$openid = new SimpleOpenID;
$openid->SetIdentity($_GET['openid_identity']);
$openid_validation_result = $openid->ValidateWithServer();
if ($openid_validation_result == true){ // OK HERE KEY IS VALID
- OC_Log::write('user_openid','auth sucessfull',OC_Log::DEBUG);
+ OCP\Util::writeLog('user_openid','auth sucessfull',OC_Log::DEBUG);
$identity=$openid->GetIdentity();
- OC_Log::write('user_openid','auth as '.$identity,OC_Log::DEBUG);
+ OCP\Util::writeLog('user_openid','auth as '.$identity,OC_Log::DEBUG);
$user=OC_USER_OPENID::findUserForIdentity($identity);
if($user){
$_SESSION['user_id']=$user;
@@ -41,13 +41,13 @@ if(isset($_GET['openid_mode']) and $_GET['openid_mode'] == 'id_res'){
}
}else if($openid->IsError() == true){ // ON THE WAY, WE GOT SOME ERROR
$error = $openid->GetError();
- OC_Log::write('user_openid','ERROR CODE: '. $error['code'],OC_Log::ERROR);
- OC_Log::write('user_openid','ERROR DESCRIPTION: '. $error['description'],OC_Log::ERROR);
+ OCP\Util::writeLog('user_openid','ERROR CODE: '. $error['code'],OC_Log::ERROR);
+ OCP\Util::writeLog('user_openid','ERROR DESCRIPTION: '. $error['description'],OC_Log::ERROR);
}else{ // Signature Verification Failed
- OC_Log::write('user_openid','INVALID AUTHORIZATION',OC_Log::ERROR);
+ OCP\Util::writeLog('user_openid','INVALID AUTHORIZATION',OC_Log::ERROR);
}
}else if (isset($_GET['openid_mode']) and $_GET['openid_mode'] == 'cancel'){ // User Canceled your Request
- OC_Log::write('user_openid','USER CANCELED REQUEST',OC_Log::DEBUG);
+ OCP\Util::writeLog('user_openid','USER CANCELED REQUEST',OC_Log::DEBUG);
return false;
}
diff --git a/apps/user_openid/user.php b/apps/user_openid/user.php
index 8fec713aa71..edaa825baf7 100644
--- a/apps/user_openid/user.php
+++ b/apps/user_openid/user.php
@@ -40,7 +40,7 @@ require_once '../../lib/base.php';
OC_Util::checkAppEnabled('user_openid');
if(!OC_User::userExists($USERNAME)){
- OC_Log::write('user_openid',$USERNAME.' doesn\'t exist',OC_Log::WARN);
+ OCP\Util::writeLog('user_openid',$USERNAME.' doesn\'t exist',OC_Log::WARN);
$USERNAME='';
}
$IDENTITY=OC_Helper::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME;