Verify CAPTCHA
This commit is contained in:
parent
946b30b486
commit
9b3c970bba
7 changed files with 132 additions and 58 deletions
|
@ -1,32 +1,27 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Register{% endblock %}
|
||||
{% block title %}Register
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% for flashError in app.flashes('verify_email_error') %}
|
||||
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
|
||||
{% endfor %}
|
||||
{% for flashError in app.flashes('verify_email_error') %}
|
||||
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
|
||||
{% endfor %}
|
||||
{% for message in app.flashes('error') %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<h1>Register</h1>
|
||||
<h1>Register</h1>
|
||||
|
||||
{{ form_start(registrationForm) }}
|
||||
{{ form_row(registrationForm.email) }}
|
||||
{{ form_row(registrationForm.username) }}
|
||||
{{ form_row(registrationForm.zipcode, {
|
||||
label: 'PLZ'
|
||||
}) }}
|
||||
{{ form_row(registrationForm.plainPassword, {
|
||||
label: 'Password'
|
||||
}) }}
|
||||
{{ form_row(registrationForm.agreeTerms) }}
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2">CAPTCHA</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="frc-captcha" data-sitekey="FCMLGE739LB528NG"></div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-lg btn-primary">Register</button>
|
||||
{{ form_end(registrationForm) }}
|
||||
{{ form_start(registrationForm) }}
|
||||
{{ form_widget(registrationForm) }}
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2">CAPTCHA</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="frc-captcha" data-sitekey="FCMLGE739LB528NG" id="captcha"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(registrationForm) }}
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue