Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
customization simpleSAMLphp
Commits
e0b58d23
Commit
e0b58d23
authored
Apr 23, 2020
by
Wolfgang Knopki
Browse files
hack to get admin recognized again
parent
fceb3f68
Changes
1
Show whitespace changes
Inline
Side-by-side
mymodule/themes/fancytheme/core/loginuserpass.php
View file @
e0b58d23
...
...
@@ -54,11 +54,14 @@ if ($this->data['errorcode'] !== null) {
<h2
class=
"sr-only"
>
Login Form
</h2>
<div
class=
"illustration"
><img
src=
"/img/M4_LAB_LOGO.png"
width=
"130"
></div>
<?php
#hacky workaround: if admin is contained in AuthState string, don't dispaly email login field
if
(
strpos
(
_GET
(
'AuthState'
),
'admin'
)
!==
false
){
<
div
class
=
"form-group"
><
input
id
=
"username"
class
=
"form-control"
type
=
"text"
name
=
"username"
placeholder
=
"Administrator"
></
div
>
if
(
strpos
(
$_GET
[
'AuthState'
],
'admin'
)
!==
false
){
?>
<div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"text"
name=
"username"
placeho
$
<?php
}
else
{
<
div
class
=
"form-group"
><
input
id
=
"username"
class
=
"form-control"
type
=
"email"
name
=
"username"
placeholder
=
"E-Mail-Adresse"
></
div
>
?>
<
div
class=
"form-group"
><input
id=
"username"
class=
"form-control"
type=
"email"
name=
"username"
placeh
$
<?php
}
?>
<
div
class=
"form-group"
><input
id=
"password"
class=
"form-control"
type=
"password"
name=
"password"
placeholder=
"Passwort"
></div><a
class=
"text-right forgot"
href=
"/account/forgotPwd"
>
Passwort vergessen?
</a>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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