summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus_arch2017-02-20 14:09:54 +0100
committerhorus_arch2017-02-20 14:09:54 +0100
commita14a7c570bc34fafc8f6f6a916ad055a8d4987d9 (patch)
tree58507f48f749bf1f7d70ad3fa4257edbafa2e336
parent5d1c13ee8695b7194031b8a8d8017c181b633045 (diff)
downloadgospeladlershof.de-a14a7c570bc34fafc8f6f6a916ad055a8d4987d9.tar.gz
Bugfix + der Auth-Code wird nach der Benutzung gelöscht.
-rw-r--r--intern.gospeladlershof.de/check_login.php2
-rw-r--r--intern.gospeladlershof.de/code/check_login.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/intern.gospeladlershof.de/check_login.php b/intern.gospeladlershof.de/check_login.php
index 65eb24f..1fa6506 100644
--- a/intern.gospeladlershof.de/check_login.php
+++ b/intern.gospeladlershof.de/check_login.php
@@ -32,7 +32,7 @@ if ( ! empty($_SESSION) ) {
<h2 class="form-signin-heading">Login</h2>
<label for="inputEmail" class="sr-only">Authentifizierung</label>
<input name="hash" type="text" id="auth_code" class="form-control" placeholder="Der Code aus der E-Mail-Adresse" required autofocus>
- <input name="email" type="hidden" value="<?php echo htmlentities($_SESSION['user'];?>">
+ <input name="email" type="hidden" value="<?php echo htmlentities($_SESSION['user']);?>">
<span class="help-block">Du hast einen Code aus der E-Mail enthalten. Trag ihn hier ein.</span>
<button class="btn btn-lg btn-primary btn-block" type="submit">Lass mich rein</button>
</form>
diff --git a/intern.gospeladlershof.de/code/check_login.php b/intern.gospeladlershof.de/code/check_login.php
index ca3a4ca..d06b357 100644
--- a/intern.gospeladlershof.de/code/check_login.php
+++ b/intern.gospeladlershof.de/code/check_login.php
@@ -23,6 +23,8 @@ if ( $hash === $correct_hash && $hash != "" && $correct_hash != "" ) {
$_SESSION["dontdisplaydeploybutton"] = 1;
+ $redis->del($mail);
+
header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect");
header("Location: /");