simplify auth mechanism a bit more
[platal.git] / include / xnet / page.inc.php
index a1af5e5..cf3df33 100644 (file)
@@ -113,14 +113,19 @@ class XnetPage extends PlatalPage
         $this->register_modifier('cat_pp', 'cat_pp');
         $this->assign('it_is_xnet', true);
         if (!S::logged() && $force) {
-            XnetSession::doLogin($this);
+            XnetSession::doAuth();
         }
         if (!S::logged() && Get::has('auth')) {
-            XnetSession::doAuthX($this);
+            XnetSession::doAuthX();
         }
     }
 
     // }}}
+
+    function doLogin()
+    {
+        redirect(S::v('loginX'));
+    }
 }
 
 // }}}