Fix register captcha

This commit is contained in:
Oleg Lavrovsky 2026-06-20 23:35:27 +02:00
commit 25a1ba44b3
No known key found for this signature in database
GPG key ID: 31E523030632FF4B
3 changed files with 12 additions and 1 deletions

View file

@ -1864,10 +1864,16 @@ main .form-actions input.btn {
color: #ff0000;
content: " *";
}
.form-group .g-recaptcha > div {
display: inline-block;
}
.form-control#recaptcha {
box-shadow: none;
border: none;
}
/* Inline "README" */
#team-md::before {
content: "Team";

View file

@ -155,6 +155,10 @@
{% else %}
{{ render_input(field) }}
{% endif %}
{% elif field.type == "RecaptchaField" %}
<div class="form-group">
{{ field }}
</div>
{% else %}
{{ render_input(field) }}
{% endif %}

View file

@ -74,6 +74,8 @@ class RegisterForm(FlaskForm):
username = StringField(
"Username", validators=[DataRequired(), Length(min=3, max=40)]
)
webpage_url = URLField("Online profile",
description="GitHub, GitLab, StackOverflow, LinkedIn, ...")
email = EmailField(
"Email", validators=[DataRequired(), Email(), Length(min=6, max=80)]
)
@ -84,7 +86,6 @@ class RegisterForm(FlaskForm):
"Verify password",
[DataRequired(), EqualTo("password", message="Passwords must match")],
)
webpage_url = URLField("Online profile")
recaptcha = RecaptchaField()
submit = SubmitField("Continue")