Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fachschaftsrat
Webtechnologien
NIV Homepage
Commits
6f581612
Commit
6f581612
authored
Nov 25, 2019
by
Michael Ochmann
Browse files
fixed login error
parent
ce71a604
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/NIV.php
View file @
6f581612
...
...
@@ -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
();
...
...
views/templates/login.mustache
View file @
6f581612
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment