Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
</div>
</div>
+ {# Honeypot Field #}
+ <div class="block">
+ <div class="field">
+ <p class="control">
+ <input class="input is-hidden" type="text" name="honey"
+ placeholder="{{ _("Give me honey") }}">
+ </p>
+ </div>
+ </div>
+
<div class="field">
<div class="control">
<button class="button is-primary is-medium is-fullwidth">
first_name = self.get_argument("first_name")
last_name = self.get_argument("last_name")
+ # If the honey field has been set, we probably have a bot
+ honey = self.get_argument("honey", None)
+ if honey:
+ raise tornado.web.HTTPError(503)
+
# Register account
try:
with self.db.transaction():