{% extends "base.html" %}

{% block title %}Login{% endblock %}

{% block description %}Open Source at Laurier login page{% endblock %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type="submit" value="Login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}

{% extends "base.html" %}

{% block title %}Login{% endblock %}

{% block description %}Open Source at Laurier login page{% endblock %}

{% block content %}
<h1>Log in</h1>

<div id="auth-page">
    <div id="register-div">
        <h2>If you created an account</h2>
        {% if form.errors %}
        <p>Your username and password didn't match. Please try again.</p>
        {% endif %}

        <form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
        <table>
        <tr>
            <td>{{ form.username.label_tag }}</td>
            <td>{{ form.username }}</td>
        </tr>
        <tr>
            <td>{{ form.password.label_tag }}</td>
            <td>{{ form.password }}</td>
        </tr>
        </table>

        <input type="submit" value="Login" />
        <input type="hidden" name="next" value="{{ next }}" />
        </form>
    </div>

    <div id="third-party-div">
        <h2>If you used a third-party account</h2>

        <form action="{% url openid_redirect %}" method="GET">
            <input type="hidden" name="openid_provider" value="http://www.google.com/accounts/o8/id" />
            <input id="google-openid-button" type="submit" value="" />
        </form>

        {% load facebook_tags %}
        {% facebook_button %}
        {% facebook_js %}

        {% load twitter_tags %}
        {% twitter_button %}

        {% load openid_tags %}
        {% openid_form %}
    </div>
</div>
{% endblock %}

Add socialregistration to log in page
Add socialregistration to log in page
