<commit_before>{% extends "admin/layout.twig" %}

{% block menu %}{% endblock %}

{% block content %}

    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <br><br><br>

            <h2>{{ 'Forgotten password?'|trans }}</h2>
            <br>
            <p>{{ 'Please, enter your e-mail and a new password will be generated and send to you.'|trans }}</p>
            <br>

            <form action="{{ path('admin_forgotten_password') }}" method="post" role="form">

                {% for error in app.session.getFlashBag.get('error') %}
                    <div class="alert alert-danger">{{ error }}</div>
                {% endfor %}

                <div class="form-group">
                    <label for="username">{{ 'E-mail'|trans }}</label>
                    <input type="text" class="form-control" name="username" id="username" placeholder="{{ 'E-mail'|trans }}">
                </div>
                <button type="submit" class="btn btn-default" id="login">{{ 'Send'|trans }}</button>
            </form>
        </div>
    </div>

{% endblock %}<commit_msg>add flash message to forgotten password<commit_after>{% extends "admin/layout.twig" %}

{% block menu %}{% endblock %}

{% block content %}

    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <br><br><br>

            <h2>{{ 'Forgotten password?'|trans }}</h2>
            <br>
            <p>{{ 'Please, enter your e-mail and a new password will be generated and send to you.'|trans }}</p>
            <br>

            <form action="{{ path('admin_forgotten_password') }}" method="post" role="form">

                {% for error in app.session.getFlashBag.get('error') %}
                    <div class="alert alert-danger">{{ error }}</div>
                {% endfor %}

                {% for message in app.session.getFlashBag.get('message') %}
                    <div class="alert alert-success">{{ message }}</div>
                {% endfor %}

                <div class="form-group">
                    <label for="username">{{ 'E-mail'|trans }}</label>
                    <input type="text" class="form-control" name="username" id="username" placeholder="{{ 'E-mail'|trans }}">
                </div>
                <button type="submit" class="btn btn-default" id="login">{{ 'Send'|trans }}</button>
            </form>
        </div>
    </div>

{% endblock %}
{'fraction_non_alphanumeric': 0.18513906185139062, 'fraction_numerical': 0.0033208800332088003, 'mean_word_length': 1.924757281553398, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3809490', 'n_tokens_mistral': 751, 'n_tokens_neox': 681, 'n_words': 169}