<commit_before>{% extends "site_base.html" %}

{% load i18n %}
{% load ifsetting_tag %}

{% block head_title %}{% trans "Login" %}{% endblock %}

{% block body %}
    <h1>{% trans "Log In" %}</h1>
    
    {% if user.is_authenticated %}
        <p><span class="warning">{% trans "Note" %}</span>: {% blocktrans %}you are already logged in as {{ user }}.{% endblocktrans %}</p>
    {% else %}
        {% ifsetting ACCOUNT_SIGNUP %}
        {% url account.views.signup as signup_url %}
        <p>{% blocktrans %}Don't have an account? <a href="{{ signup_url }}">Sign up</a>!{% endblocktrans %}</p>
        {% endifsetting %}
    {% endif %}
    
    <form class="login" method="POST" action="">
        <table>
            {{ form.as_table }}
            <tr><td></td><td><a href="{% url acct_passwd_reset %}">{% trans "Forgot password?" %}</a></td></tr>
            <tr><td></td><td><input type="submit" value="{% trans "Log in &raquo;" %}" /></td></tr>
        </table>
    </form>
    
    {% if not openid %}
        <p>{% trans "Or sign in with your OpenID" %}:</p>
        <form class="login" action="/openid/register/" method="POST">
            <table>
                <tr><th>{% trans "OpenID Identifier" %}: </th><td><input class="openid" type="text" name="openid_url"></td></tr>
                <tr><td></td><td><input type="submit" value="{% trans "Log in &raquo;" %}" /></td></tr>
            </table>
        </form>
    {% endif %}
    <p>{% blocktrans %}If you have any trouble logging in to your account, contact us at <a href="mailto:{{ contact_email }}">{{ contact_email }}</a>.{% endblocktrans %}</p>
{% endblock %}

{% block extra_body %}
<script>
    $("#id_username").focus();
</script>
{% endblock %}<commit_msg>removed use of ifsetting ACCOUNT_SIGNUP in default template until we're ready for it<commit_after>{% extends "site_base.html" %}

{% load i18n %}

{% block head_title %}{% trans "Login" %}{% endblock %}

{% block body %}
    <h1>{% trans "Log In" %}</h1>
    
    {% if user.is_authenticated %}
        <p><span class="warning">{% trans "Note" %}</span>: {% blocktrans %}you are already logged in as {{ user }}.{% endblocktrans %}</p>
    {% else %}
        {% url account.views.signup as signup_url %}
        <p>{% blocktrans %}Don't have an account? <a href="{{ signup_url }}">Sign up</a>!{% endblocktrans %}</p>
    {% endif %}
    
    <form class="login" method="POST" action="">
        <table>
            {{ form.as_table }}
            <tr><td></td><td><a href="{% url acct_passwd_reset %}">{% trans "Forgot password?" %}</a></td></tr>
            <tr><td></td><td><input type="submit" value="{% trans "Log in &raquo;" %}" /></td></tr>
        </table>
    </form>
    
    {% if not openid %}
        <p>{% trans "Or sign in with your OpenID" %}:</p>
        <form class="login" action="/openid/register/" method="POST">
            <table>
                <tr><th>{% trans "OpenID Identifier" %}: </th><td><input class="openid" type="text" name="openid_url"></td></tr>
                <tr><td></td><td><input type="submit" value="{% trans "Log in &raquo;" %}" /></td></tr>
            </table>
        </form>
    {% endif %}
    <p>{% blocktrans %}If you have any trouble logging in to your account, contact us at <a href="mailto:{{ contact_email }}">{{ contact_email }}</a>.{% endblocktrans %}</p>
{% endblock %}

{% block extra_body %}
<script>
    $("#id_username").focus();
</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.2234782608695652, 'fraction_numerical': 0.002318840579710145, 'mean_word_length': 2.8174778761061945, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '4609441', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1120, 'n_words': 301}