X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=widget.auth.php;h=985ee53ecfcc7a1367426c9002b08d9c89b45c44;hb=HEAD;hp=388eabe145590402f95b8024b38274a8c16cde6e;hpb=001b27af17869b43a0c64ff82fa1679adbd10ff8;p=dotclear.git diff --git a/widget.auth.php b/widget.auth.php index 388eabe..985ee53 100644 --- a/widget.auth.php +++ b/widget.auth.php @@ -1,20 +1,20 @@ create('XorgAuth', __('Auth. X.org'), array('xorgAuthWidget', 'widget')); } - static public function widget(&$w) { + static public function widget($w) { global $core; - $name = $core->auth->userID(); - var_dump($_SESSION); - var_dump($_REQUEST); - echo "sessionid = " . session_id(); + $name = @$core->auth->getInfo('user_displayname'); if ($name) { - return '

Tu es ' . $core->auth->getInfo('user_displayname') . '
' - . 'déconnexion

'; + $str = '
'; } else { - return '

M\'authentifier via Polytechnique.org

'; + return ''; } } }