summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern.gospeladlershof.de/check_login.php2
-rw-r--r--intern.gospeladlershof.de/login.php8
2 files changed, 8 insertions, 2 deletions
diff --git a/intern.gospeladlershof.de/check_login.php b/intern.gospeladlershof.de/check_login.php
index 1fa6506..763d0ee 100644
--- a/intern.gospeladlershof.de/check_login.php
+++ b/intern.gospeladlershof.de/check_login.php
@@ -34,7 +34,7 @@ if ( ! empty($_SESSION) ) {
<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']);?>">
<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>
+ <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="javascript:_paq.push(['trackEvent', 'Login', 'VerifyHash', '<?php echo htmlentities($_SESSION['user']);?>']);">Lass mich rein</button>
</form>
</div> <!-- /container -->
diff --git a/intern.gospeladlershof.de/login.php b/intern.gospeladlershof.de/login.php
index 1ced39b..08352e4 100644
--- a/intern.gospeladlershof.de/login.php
+++ b/intern.gospeladlershof.de/login.php
@@ -22,6 +22,11 @@ if ( ! empty($_SESSION) ) {
<div class="alert alert-danger" role="alert">
<?php
echo htmlentities($_SESSION["error"]);
+?>
+ <script>
+ _paq.push(['trackEvent', 'Login', 'Failure', '<?php echo htmlentities($_SESSION["user"]);?>']);
+ </script>
+<?php
unset($_SESSION["error"]);
?>
</div>
@@ -33,7 +38,8 @@ if ( ! empty($_SESSION) ) {
<label for="inputEmail" class="sr-only">E-Mail Adresse</label>
<input name="email" type="email" id="inputEmail" class="form-control" placeholder="E-Mail-Adresse" required autofocus>
<span class="help-block">Es wird dir eine E-Mail an dieselbe Adresse geschickt, mit der du auch die anderen E-Mails des Chors liest.</span>
- <button class="btn btn-lg btn-primary btn-block" type="submit">Lass mich rein</button>
+ <br>
+ <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="javascript:_paq.push(['trackEvent', 'Login', 'SendMail', $('#inputEmail').val()]);">Los geht's!</button>
</form>
</div> <!-- /container -->