diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 17:38:27 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 17:38:27 +0200 |
commit | d0554bef069b29affa95ec3c2bf78af637703a90 (patch) | |
tree | f28c25fef284dc6b61425917e79a812c85274597 /apps/user_openid | |
parent | 7ded9cf520f74b595bc0f8939ac59249b47ccbc9 (diff) | |
download | nextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.tar.gz nextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.zip |
finish porting of the LOG calls or the apps to the public api
Diffstat (limited to 'apps/user_openid')
-rwxr-xr-x[-rw-r--r--] | apps/user_openid/appinfo/app.php | 14 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/user_openid/user.php | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/user_openid/appinfo/app.php b/apps/user_openid/appinfo/app.php index 730039570a0..867a0a3ed33 100644..100755 --- 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'){ - OCP\Util::writeLog('user_openid','openid retured',OC_Log::DEBUG); + OCP\Util::writeLog('user_openid','openid retured',OCP\Util::DEBUG); $openid = new SimpleOpenID; $openid->SetIdentity($_GET['openid_identity']); $openid_validation_result = $openid->ValidateWithServer(); if ($openid_validation_result == true){ // OK HERE KEY IS VALID - OCP\Util::writeLog('user_openid','auth sucessfull',OC_Log::DEBUG); + OCP\Util::writeLog('user_openid','auth sucessfull',OCP\Util::DEBUG); $identity=$openid->GetIdentity(); - OCP\Util::writeLog('user_openid','auth as '.$identity,OC_Log::DEBUG); + OCP\Util::writeLog('user_openid','auth as '.$identity,OCP\Util::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(); - OCP\Util::writeLog('user_openid','ERROR CODE: '. $error['code'],OC_Log::ERROR); - OCP\Util::writeLog('user_openid','ERROR DESCRIPTION: '. $error['description'],OC_Log::ERROR); + OCP\Util::writeLog('user_openid','ERROR CODE: '. $error['code'],OCP\Util::ERROR); + OCP\Util::writeLog('user_openid','ERROR DESCRIPTION: '. $error['description'],OCP\Util::ERROR); }else{ // Signature Verification Failed - OCP\Util::writeLog('user_openid','INVALID AUTHORIZATION',OC_Log::ERROR); + OCP\Util::writeLog('user_openid','INVALID AUTHORIZATION',OCP\Util::ERROR); } }else if (isset($_GET['openid_mode']) and $_GET['openid_mode'] == 'cancel'){ // User Canceled your Request - OCP\Util::writeLog('user_openid','USER CANCELED REQUEST',OC_Log::DEBUG); + OCP\Util::writeLog('user_openid','USER CANCELED REQUEST',OCP\Util::DEBUG); return false; } diff --git a/apps/user_openid/user.php b/apps/user_openid/user.php index edaa825baf7..59220aedc56 100644..100755 --- 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)){ - OCP\Util::writeLog('user_openid',$USERNAME.' doesn\'t exist',OC_Log::WARN); + OCP\Util::writeLog('user_openid',$USERNAME.' doesn\'t exist',OCP\Util::WARN); $USERNAME=''; } $IDENTITY=OC_Helper::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME; |