diff --git a/includes/login.php b/includes/login.php new file mode 100644 index 00000000..89374894 --- /dev/null +++ b/includes/login.php @@ -0,0 +1,38 @@ +login($username, $password)) { + $config = $auth->getAuthConfig(); + header('Location: ' . $redirectUrl); + die(); + } else { + $status = "Login failed"; + } + } + } + + echo renderTemplate( + "login", compact( + "status", + "redirectUrl" + ) + ); +} + diff --git a/templates/login.php b/templates/login.php new file mode 100644 index 00000000..41d1f3f1 --- /dev/null +++ b/templates/login.php @@ -0,0 +1,42 @@ + + +