Explorar o código

Redirect to /list/user/ after login

dpeca %!s(int64=8) %!d(string=hai) anos
pai
achega
1a61ea102b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      web/login/index.php

+ 2 - 2
web/login/index.php

@@ -25,7 +25,7 @@ if (isset($_SESSION['user'])) {
             $_SESSION['look_alert'] = 'yes';
         }
     }
-    header("Location: /");
+    header("Location: /list/user/");
     exit;
 }
 
@@ -109,7 +109,7 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
                     unset($_SESSION['request_uri']);
                     exit;
                 } else {
-                    header("Location: /");
+                    header("Location: /list/user/");
                     exit;
                 }
             }