summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-11 17:17:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-11 17:17:15 +0100
commit2604abad4e685cb485922fc82feef54f805e3e36 (patch)
treea9b55d3b66a7d7efbb530f6517eca163abc8eb92 /index.pl
parentd6bdc0ae105fc3799094fc1bb12499243b65fa91 (diff)
Allow two regstration attempts per mail
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.pl b/index.pl
index 93ce538..caa25d2 100755
--- a/index.pl
+++ b/index.pl
@@ -246,7 +246,7 @@ app->attr(
my ($self) = @_;
return $self->app->dbh->prepare(
- qq{select * from pending_mails where email = ?;});
+ qq{select * from pending_mails where email = ? and num_tries > 1;});
}
);
app->attr(
@@ -1011,7 +1011,7 @@ post '/register' => sub {
$body .= "${reg_url}/${user_id}/${token}\n";
$body .= "freischalten.\n\n";
$body
- .= "Falls nicht, ignoriere diese Mail bitte. Nach 48 Stunden wird deine\n";
+ .= "Falls nicht, ignoriere diese Mail bitte. Nach etwa 48 Stunden wird deine\n";
$body
.= "Mail-Adresse erneut zur Registrierung freigeschaltet. Falls auch diese fehlschlägt,\n";
$body