summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/code/check_login.php
diff options
context:
space:
mode:
Diffstat (limited to 'intern.gospeladlershof.de/code/check_login.php')
-rw-r--r--intern.gospeladlershof.de/code/check_login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern.gospeladlershof.de/code/check_login.php b/intern.gospeladlershof.de/code/check_login.php
index 0ea8ecd..ca3a4ca 100644
--- a/intern.gospeladlershof.de/code/check_login.php
+++ b/intern.gospeladlershof.de/code/check_login.php
@@ -16,7 +16,7 @@ $redis = new Predis\Client([
$correct_hash = $redis->get($mail);
-if ( $hash === $correct_hash ) {
+if ( $hash === $correct_hash && $hash != "" && $correct_hash != "" ) {
$_SESSION["login"] = true;
$_SESSION["success"] = "Erfolgreich eingeloggt.";
$_SESSION["user"] = $mail;