X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=widget.auth.php;h=985ee53ecfcc7a1367426c9002b08d9c89b45c44;hb=HEAD;hp=ba145002e0ecfbfa9319ef04c30f416f2e1475ed;hpb=f4737a5a76517751aa2000f25168c52fea7c1a06;p=dotclear.git diff --git a/widget.auth.php b/widget.auth.php index ba14500..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(); + $name = @$core->auth->getInfo('user_displayname'); if ($name) { - $str = '

Tu es ' . $core->auth->getInfo('user_displayname') . '
'; + $str = '

'; } else { - return '

M\'authentifier via Polytechnique.org

'; + return ''; } } }