mirror of
https://codeberg.org/dribdat/dribdat.git
synced 2026-07-13 21:39:15 +00:00
Fix register captcha
This commit is contained in:
parent
67f32fb794
commit
25a1ba44b3
3 changed files with 12 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -155,6 +155,10 @@
|
|||
{% else %}
|
||||
{{ render_input(field) }}
|
||||
{% endif %}
|
||||
{% elif field.type == "RecaptchaField" %}
|
||||
<div class="form-group">
|
||||
{{ field }}
|
||||
</div>
|
||||
{% else %}
|
||||
{{ render_input(field) }}
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue