update captcha and send email to user

This commit is contained in:
Meewan
2024-08-16 19:15:17 +02:00
parent 4988092706
commit a1f602d313
3 changed files with 23 additions and 25 deletions

View File

@@ -5,24 +5,6 @@
<meta charset="utf-8">
<link rel="stylesheet" href="/css/frombulma.css">
<link rel="stylesheet" href="/css/styles.css">
<style type="text/css">
.form-line>.input, .form-line>.textarea{
border-color: #aaaaaa;
width:100%;
margin-bottom: 1em;
}
.form-line>.textarea{
min-height: 25em;
}
.form-error{
width: 100%;
border-radius: 4px;
margin-bottom: 1em;
}
.form-alert{
background-color: rgba(255, 0, 0, 0.2);
}
</style>
</head>
<body>
@@ -44,7 +26,7 @@
<label class="label" for="captcha">Vérification dhumanité: combien font {{first_number}} {{op_text}} {{second_number}} ?</label>
</div>
<div class="form-line field">
<input class="input {% if captcha_error %}form-alert{% endif %}" id="captcha" type="number" name="captcha" min="-10" max="100" required />
<input class="input {% if captcha_error %}form-alert{% endif %}" id="captcha" type="number" name="captcha" min="0" max="81" required />
</div>
{% if captcha_error %}
<div class="form-error">Le captcha est invalide veuillez réessayer</div>