Commit fceb3f68 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

hack to get admin recognized again

5 merge requests!14Prepare production,!13Testing,!12Testing,!9hack to get admin recognized again,!8Admin adapt
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
Showing with 8 additions and 2 deletions
+8 -2
......@@ -14,7 +14,6 @@ $this->includeAtTemplateBase('includes/header.php');
<div class="col-md-12" style="margin-bottom: 40px;"><img class="mx-auto" src="/img/Anmelden.png" width="100%"></div>
</div>
</div>
<?php
if ($this->data['errorcode'] !== null) {
......@@ -54,7 +53,14 @@ if ($this->data['errorcode'] !== null) {
<form method="post">
<h2 class="sr-only">Login Form</h2>
<div class="illustration"><img src="/img/M4_LAB_LOGO.png" width="130"></div>
<div class="form-group"><input id="username" class="form-control" type="email" name="username" placeholder="E-Mail-Adresse"></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>
}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="password" class="form-control" type="password" name="password" placeholder="Passwort"></div><a class="text-right forgot" href="/account/forgotPwd">Passwort vergessen?</a>
<div class="form-group"><button class="btn btn-primary btn-block" type="submit" style="background-color: #8a348b;"><strong>Anmelden</strong></button><a class="btn btn-primary btn-block" type="" style="background-color: rgb(234,234,234);color: rgb(0,0,0);" href="/account/registration"><strong>Neues Benutzerkonto anlegen</strong></a></div>
<input type="hidden" id="processing_trans" value="<?php echo $this->t('{login:processing}'); ?>" />
......
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