page: api attribute indicate index requests
[minimedit.git] / login / post / index.php
index 23c445146e95820b5b2612967eecf459303c2f63..c4dcffce17d16f0b42188ebe01631a07d07a7162 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-if (!$User) return;
+if ($Page->api) return;
 
 if (!$User->login) {
        $target = urlencode($_SERVER['REQUEST_URI']);