summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 19:04:20 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 19:04:20 +0200
commit254b8b95065b4e2f27a8d2620f26bef65269957b (patch)
tree23a0ff8b76397a5271d1aa45a6a07b0e8ed5a2f3 /apps/user_openid
parent70cea18cce0fcdb4d8118ff2d7abccc922417a6a (diff)
downloadnextcloud-server-254b8b95065b4e2f27a8d2620f26bef65269957b.tar.gz
nextcloud-server-254b8b95065b4e2f27a8d2620f26bef65269957b.zip
porting of OC_User to public API complete.
What better thing to do during a long train ride than refactoring ;-)
Diffstat (limited to 'apps/user_openid')
-rwxr-xr-x[-rw-r--r--]apps/user_openid/phpmyid.php2
-rwxr-xr-xapps/user_openid/user.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_openid/phpmyid.php b/apps/user_openid/phpmyid.php
index ef01e7a046d..a86e8070fc8 100644..100755
--- a/apps/user_openid/phpmyid.php
+++ b/apps/user_openid/phpmyid.php
@@ -205,7 +205,7 @@ function authorize_mode () {
$profile['idp_url']=$IDENTITY;
if (isset($_SERVER['PHP_AUTH_USER']) && $profile['authorized'] === false && $_SERVER['PHP_AUTH_USER']==$USERNAME) {
- if (OC_User::checkPassword($USERNAME, $_SERVER['PHP_AUTH_PW'])) {// successful login!
+ if (OCP\User::checkPassword($USERNAME, $_SERVER['PHP_AUTH_PW'])) {// successful login!
// return to the refresh url if they get in
$_SESSION['openid_auth']=true;
$_SESSION['openid_user']=$USERNAME;
diff --git a/apps/user_openid/user.php b/apps/user_openid/user.php
index 59220aedc56..cd17dae6d6f 100755
--- a/apps/user_openid/user.php
+++ b/apps/user_openid/user.php
@@ -39,7 +39,7 @@ $RUNTIME_NOAPPS=false;
require_once '../../lib/base.php';
OC_Util::checkAppEnabled('user_openid');
-if(!OC_User::userExists($USERNAME)){
+if(!OCP\User::userExists($USERNAME)){
OCP\Util::writeLog('user_openid',$USERNAME.' doesn\'t exist',OCP\Util::WARN);
$USERNAME='';
}