Explorar el Código

Set correct landing page depending on admin/standard user

Kristan Kenney hace 6 años
padre
commit
4bfe58bb03
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      web/login/index.php

+ 5 - 1
web/login/index.php

@@ -128,7 +128,11 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
                         unset($_SESSION['request_uri']);
                         unset($_SESSION['request_uri']);
                         exit;
                         exit;
                     } else {
                     } else {
-                        header("Location: /list/web/");
+                        if ($v_user == 'admin') {
+                            header("Location: /list/user/");
+                        } else {
+                            header("Location: /list/web/");
+                        }
                         exit;
                         exit;
                     }
                     }
                 }
                 }