mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add a simple CAPTCHA to the sign up form
Add a CAPTCHA to protect against automated account creation. The CAPTCHA changes whenever three new accounts are registered. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
a66c7fa615
commit
d6ae970785
3 changed files with 95 additions and 4 deletions
|
@ -174,6 +174,17 @@
|
|||
</p>
|
||||
</fieldset>
|
||||
|
||||
<?php if ($A != "UpdateAccount"): ?>
|
||||
<fieldset>
|
||||
<legend><?= __("To protect the AUR against automated account creation, we kindly ask you to provide the output of the following command:") ?> <code><?= htmlspecialchars($captcha_challenge) ?></code></legend>
|
||||
<p>
|
||||
<label for="id_captcha"><?= __("Answer") ?>:</label>
|
||||
<input type="text" size="30" maxlength="6" name="captcha" id="id_captcha" value="<?= htmlspecialchars($captcha, ENT_QUOTES) ?>" /> (<?= __("required") ?>)
|
||||
<input type="hidden" name="captcha_salt" value="<?= htmlspecialchars($captcha_salt) ?>" />
|
||||
</p>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<fieldset>
|
||||
<p>
|
||||
<label></label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue