Commit 6f581612 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

fixed login error

parent ce71a604
......@@ -2,6 +2,16 @@
namespace niv;
session_name("niv_authentication");
if (!preg_match("~^/session/~", $_SERVER["REQUEST_URI"])) {
session_start();
echo "dwqdqwd";
}
else {
echo "aeweeedwsdandwqeldnw";
}
class NIV {
private $services;
private $router;
......@@ -47,12 +57,6 @@ class NIV {
$this->router->get("/session/([a-z0-9]+)", \niv\controllers\Session::class);
session_name("niv_authentication");
if (!preg_match("~^/session/~", $_SERVER["REQUEST_URI"]))
session_start();
else {
echo "aeweeedwsdandwqeldnw";
}
$this->router->route();
......
......@@ -19,7 +19,7 @@
<a href="/password/recover">Passwort vergessen?</a>
</p>
{{/error}}
<a href="https://fsi.hochschule-trier.de/Shibboleth.sso/Login?target=https://fsi.hochschule-trier.de/niv2">Login mit RZ/HT-Kennung</a>
{{!<a href="https://fsi.hochschule-trier.de/Shibboleth.sso/Login?target=https://fsi.hochschule-trier.de/niv2">Login mit RZ/HT-Kennung</a>}}
<a href="register">Registrieren</a>
</section>
</form>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment