<commit_before>{% set icons = {'Microsoft': 'windows'} %}

<section id="grav-login">
    {{ content }}

    {% include 'partials/messages.html.twig' %}

    <form method="post" action="{{ uri.url ~ page.header.form.action}}">
        {% if oauth.enabled %}
            <div class="form-oauth button-group">
                {# Create hidden duplicate of submit button to designate it as default #}
                <input type="submit" name="task" value="login.login" tabindex="-1" />

                {# Show OAuth authentication providers #}
                <p>{{ 'PLUGIN_LOGIN.OAUTH_CONNECT_MESSAGE'|t }}
                {% if oauth.providers|count > 4 %}
                    {{ 'PLUGIN_LOGIN.OR'|t }} <label for="oauth-input">{{ 'PLUGIN_LOGIN.OAUTH_CONNECT_MESSAGE_EXTRA'|t }}</label></p>
                    <input type="checkbox" id="oauth-input" />
                    <ul class="oauth-provider-extra">
                        {% for provider,credentials in oauth.providers[4:] %}
                            {% set icon = icons[provider]|default(provider|lower) %}
                            <li><button name="oauth" value="{{ provider }}" type="submit" class="button {{ provider|lower }}" href="{{ base_url_relative }}/login/oauth{{ config.system.param_sep }}{{ provider }}" title="{{ 'PLUGIN_LOGIN.OAUTH_LOGIN'|t(provider|ucwords) }}"><i class="fa fa-{{ icon }}"></i> {{ provider|ucwords }}</button></li>
                        {% endfor %}
                    </ul>
                {% else %}
                    </p>
                {% endif %}

                <ul class="oauth-provider">
                    {% for provider,credentials in oauth.providers[:4] %}
                        {% set icon = icons[provider]|default(provider|lower) %}
                        <li><button name="oauth" value="{{ provider }}" type="submit" class="button {{ provider|lower }}" href="{{ base_url_relative }}/login/oauth{{ config.system.param_sep }}{{ provider }}" title="{{ 'PLUGIN_LOGIN.OAUTH_LOGIN'|t(provider|ucwords) }}"><i class="fa fa-{{ icon }}"></i> {{ provider|ucwords }}</button></li>
                    {% endfor %}
                </ul>
            </div>
            <span class="delimiter">{{ 'PLUGIN_LOGIN.OR'|t }}</span>
            <p>{{ 'PLUGIN_LOGIN.OAUTH_SIGNIN'|t }}</p>
        {% endif %}

        {% for field in page.header.form.fields %}
            {% if field.type %}
                <div>
                    {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
                </div>
            {% endif %}
        {% endfor %}
        <div class="form-actions secondary-accent">
            {% if config.plugins.login.rememberme.enabled %}
                <div class="form-data rememberme" data-grav-default="null" data-grav-disabled="true" data-grav-field="checkbox">
                    <div class="form-input-wrapper">
                        <input type="checkbox" value="1" name="rememberme" id="#rememberme">
                        <label class="inline" for="#rememberme" title="{{ 'PLUGIN_LOGIN.REMEMBER_ME_HELP'|t }}">{{ 'PLUGIN_LOGIN.REMEMBER_ME'|t }}</label>
                    </div>
                </div>
            {% endif %}

            <!--<a class="button secondary" href="{{ base_url_relative }}/forgot"><i class="fa fa-exclamation-circle"></i> {{ 'PLUGIN_LOGIN.BTN_FORGOT'|t }}</a>-->

            <button type="submit" class="button primary" name="task" value="login.login"><i class="fa fa-sign-in"></i> {{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</button>

            <a class="button secondary" href="{{ base_url_relative }}/register"><i class="fa fa-user"></i> {{ 'PLUGIN_LOGIN.BTN_REGISTER'|t }}</a>
        </div>

        {{ nonce_field('login-form', 'login-form-nonce') }}
    </form>
</section><commit_msg>Drop registration link in login form<commit_after>{% set icons = {'Microsoft': 'windows'} %}

<section id="grav-login">
    {{ content }}

    {% include 'partials/messages.html.twig' %}

    <form method="post" action="{{ uri.url ~ page.header.form.action}}">
        {% if oauth.enabled %}
            <div class="form-oauth button-group">
                {# Create hidden duplicate of submit button to designate it as default #}
                <input type="submit" name="task" value="login.login" tabindex="-1" />

                {# Show OAuth authentication providers #}
                <p>{{ 'PLUGIN_LOGIN.OAUTH_CONNECT_MESSAGE'|t }}
                {% if oauth.providers|count > 4 %}
                    {{ 'PLUGIN_LOGIN.OR'|t }} <label for="oauth-input">{{ 'PLUGIN_LOGIN.OAUTH_CONNECT_MESSAGE_EXTRA'|t }}</label></p>
                    <input type="checkbox" id="oauth-input" />
                    <ul class="oauth-provider-extra">
                        {% for provider,credentials in oauth.providers[4:] %}
                            {% set icon = icons[provider]|default(provider|lower) %}
                            <li><button name="oauth" value="{{ provider }}" type="submit" class="button {{ provider|lower }}" href="{{ base_url_relative }}/login/oauth{{ config.system.param_sep }}{{ provider }}" title="{{ 'PLUGIN_LOGIN.OAUTH_LOGIN'|t(provider|ucwords) }}"><i class="fa fa-{{ icon }}"></i> {{ provider|ucwords }}</button></li>
                        {% endfor %}
                    </ul>
                {% else %}
                    </p>
                {% endif %}

                <ul class="oauth-provider">
                    {% for provider,credentials in oauth.providers[:4] %}
                        {% set icon = icons[provider]|default(provider|lower) %}
                        <li><button name="oauth" value="{{ provider }}" type="submit" class="button {{ provider|lower }}" href="{{ base_url_relative }}/login/oauth{{ config.system.param_sep }}{{ provider }}" title="{{ 'PLUGIN_LOGIN.OAUTH_LOGIN'|t(provider|ucwords) }}"><i class="fa fa-{{ icon }}"></i> {{ provider|ucwords }}</button></li>
                    {% endfor %}
                </ul>
            </div>
            <span class="delimiter">{{ 'PLUGIN_LOGIN.OR'|t }}</span>
            <p>{{ 'PLUGIN_LOGIN.OAUTH_SIGNIN'|t }}</p>
        {% endif %}

        {% for field in page.header.form.fields %}
            {% if field.type %}
                <div>
                    {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
                </div>
            {% endif %}
        {% endfor %}
        <div class="form-actions secondary-accent">
            {% if config.plugins.login.rememberme.enabled %}
                <div class="form-data rememberme" data-grav-default="null" data-grav-disabled="true" data-grav-field="checkbox">
                    <div class="form-input-wrapper">
                        <input type="checkbox" value="1" name="rememberme" id="#rememberme">
                        <label class="inline" for="#rememberme" title="{{ 'PLUGIN_LOGIN.REMEMBER_ME_HELP'|t }}">{{ 'PLUGIN_LOGIN.REMEMBER_ME'|t }}</label>
                    </div>
                </div>
            {% endif %}

            <!--<a class="button secondary" href="{{ base_url_relative }}/forgot"><i class="fa fa-exclamation-circle"></i> {{ 'PLUGIN_LOGIN.BTN_FORGOT'|t }}</a>-->

            <button type="submit" class="button primary" name="task" value="login.login"><i class="fa fa-sign-in"></i> {{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}</button>
        </div>

        {{ nonce_field('login-form', 'login-form-nonce') }}
    </form>
</section>
{'fraction_non_alphanumeric': 0.18401065956029314, 'fraction_numerical': 0.0013324450366422385, 'mean_word_length': 2.113231024471174, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6188189', 'n_tokens_mistral': 2365, 'n_tokens_neox': 2185, 'n_words': 404}