-
+
+
Du hast einen Code aus der E-Mail enthalten. Trag ihn hier ein.
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;
diff --git a/intern.gospeladlershof.de/code/login.php b/intern.gospeladlershof.de/code/login.php
index 002ddd3..b1ad01f 100644
--- a/intern.gospeladlershof.de/code/login.php
+++ b/intern.gospeladlershof.de/code/login.php
@@ -19,7 +19,7 @@ foreach($addresses as $a) {
$htmlmessage = ob_get_clean();
ob_start();
- require __DIR__ . 'template/text_mail.php';
+ require __DIR__ . '/template/text_mail.php';
$textmessage = ob_get_clean();
$redis = new Predis\Client([
@@ -34,7 +34,7 @@ foreach($addresses as $a) {
$pheanstalk = new Pheanstalk('192.168.122.1');
$data = array(
- 'To' => $mail,
+ 'To' => array($mail),
'Name' => 'Gospelchor Adlershof',
'From' => 'noreply@gospeladlershof.de',
'ReplyTo' => 'webmaster@gospeladlershof.de',
@@ -44,7 +44,7 @@ foreach($addresses as $a) {
);
$pheanstalk
- ->useTube('contactme_mailer')
+ ->useTube('contactme_mail')
->put(json_encode($data));
$_SESSION["user"] = $mail;
diff --git a/intern.gospeladlershof.de/code/template/text_mail.php b/intern.gospeladlershof.de/code/template/text_mail.php
index 7e67be7..4b815ec 100644
--- a/intern.gospeladlershof.de/code/template/text_mail.php
+++ b/intern.gospeladlershof.de/code/template/text_mail.php
@@ -1,7 +1,7 @@
Hallo,
um dich auf der Webseite des Gospelchors einzuloggen, folge bitte diesem Link:
-https://intern.gospeladlershof.de/code/check_login.php?email=&hash=
+https://intern.gospeladlershof.de/code/check_login.php?email=&hash=
Der Link verfällt innerhalb 24h.
Sollte der Link nicht funktionieren, dein Authentifizierungscode lautet .
diff --git a/intern.gospeladlershof.de/login.php b/intern.gospeladlershof.de/login.php
index 23c2695..1ced39b 100644
--- a/intern.gospeladlershof.de/login.php
+++ b/intern.gospeladlershof.de/login.php
@@ -32,7 +32,7 @@ if ( ! empty($_SESSION) ) {
Bitte melde dich an
- Es wird dir eine E-Mail an dieselbe Adresse geschickt, mit der du auch die anderen E-Mails des Chors liest.
+ Es wird dir eine E-Mail an dieselbe Adresse geschickt, mit der du auch die anderen E-Mails des Chors liest.
--
cgit v1.2.3