Skip to content

Commit

Permalink
Add security.send_confirmation template
Browse files Browse the repository at this point in the history
Fix WWW-DATAGOUVFR-379W
  • Loading branch information
abulte committed Mar 2, 2018
1 parent 8902b40 commit 4bca155
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Added a link to change password into the admin [#1462](https://github.com/opendatateam/udata/pull/1462)
- Chunked upload support (big files support) [#1468](https://github.com/opendatateam/udata/pull/1468)
- udata is now protocol (`http`/`https`) agnostic. This is now fully the reverse-proxy responsibility (please ensure that you are using SSL only in production for security purpose). [#1463](https://github.com/opendatateam/udata/pull/1463) [breaking]
- Add security.send_confirmation template [#1475](https://github.com/opendatateam/udata/pull/1475)

## 1.2.11 (2018-02-05)

Expand Down
24 changes: 24 additions & 0 deletions udata/templates/security/send_confirmation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends theme('layouts/1-column.html') %}
{% import 'macros/forms.html' as forms with context %}

{% set section_class = 'form' %}

{% block main_content %}

<div class="container auth-container">
<form class="form-horizontal validate col-md-offset-2 col-md-8"
action="{{ url_for('security.send_confirmation') }}" method="POST" name="send_confirmation_form">
<fieldset>
<legend>{{ _('Resend confirmation instructions') }}</legend>
{{ send_confirmation_form.hidden_tag() }}

{{ forms.field(send_confirmation_form.email) }}
<div class="form-group">
<div class="col-md-12">
<button type="submit" class="btn btn-primary btn-block">{{ _('Submit') }}</button>
</div>
</div>
</fieldset>
</form>
</div>
{% endblock %}

0 comments on commit 4bca155

Please sign in to comment.