Skip to content
Snippets Groups Projects
Commit e7329233 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Check if webfinger is enabled

parent 2c5ab91c
No related branches found
No related tags found
No related merge requests found
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
if(class_exists('OC')){
$WEBROOT=OC::$WEBROOT;
......
<?php
if (!OCP\App::isEnabled("user_webfinger")) {
return;
}
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/xrd+json");
......@@ -15,7 +19,7 @@ header("Content-Type: application/xrd+json");
* href="<?php echo WF_BASEURL; ?>/apps/myApp/profile.php?user=<?php echo WF_USER; ?>">
* </Link>
*
'* but can also use complex database queries to generate the webfinger result
* but can also use complex database queries to generate the webfinger result
**/
$userName = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment