]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
Merge pull request #3349 from annando/1704-api-owner
[friendica.git] / mod / openid.php
index e11267d81fcd0a3e2fdd7f2af60283ff9173de9c..b45cd97975e3f7b838b3eb2283cafcd74a4d9f3c 100644 (file)
@@ -7,20 +7,20 @@ require_once('library/openid.php');
 function openid_content(App $a) {
 
        $noid = get_config('system','no_openid');
-       if ($noid)
+       if($noid)
                goaway(z_root());
 
        logger('mod_openid ' . print_r($_REQUEST,true), LOGGER_DATA);
 
-       if ((x($_GET,'openid_mode')) && (x($_SESSION,'openid'))) {
+       if((x($_GET,'openid_mode')) && (x($_SESSION,'openid'))) {
 
                $openid = new LightOpenID;
 
-               if ($openid->validate()) {
+               if($openid->validate()) {
 
                        $authid = $_REQUEST['openid_identity'];
 
-                       if (! strlen($authid)) {
+                       if(! strlen($authid)) {
                                logger( t('OpenID protocol error. No ID returned.') . EOL);
                                goaway(z_root());
                        }
@@ -69,10 +69,10 @@ function openid_content(App $a) {
                                        if ($k === 'namePerson/friendly') {
                                                $nick = notags(trim($v));
                                        }
-                                       if ($k === 'namePerson/first') {
+                                       if($k === 'namePerson/first') {
                                                $first = notags(trim($v));
                                        }
-                                       if ($k === 'namePerson') {
+                                       if($k === 'namePerson') {
                                                $args .= '&username=' . notags(trim($v));
                                        }
                                        if ($k === 'contact/email') {