Partial rewrite of auth.
[dotclear.git] / _public.php
index 2b00670..84d05da 100644 (file)
@@ -15,14 +15,16 @@ class xorgAuthWidget {
 
 class xorgAuthentifier extends dcUrlHandlers {
   static public function doAuth($args) {
-    @session_start();
     global $core;
     switch ($args) {
      case 'exit':
       $core->auth->killSession();
       break;
      case 'Xorg':
-      $core->auth->callXorg();
+      if ($core->auth->callXorg($_GET['path'])) {
+        header('Location: http://murphy.m4x.org' . $_GET['path']);
+        exit;
+      }
       break;
      case 'XorgReturn':
       $core->auth->returnXorg();