Merge branch 'master' of github.com:Gluejar/regluit
commit
ce080f893e
|
@ -1,4 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
{# raw url references raise test errors in tests for django registration; this is a workaround #}
|
||||
{% url privacy as privacyurl %}
|
||||
<html>
|
||||
<head>
|
||||
<title>unglue.it {% block title %}{% endblock %}</title>
|
||||
|
@ -44,7 +46,7 @@
|
|||
|
||||
<div id="footer">
|
||||
<ul class="menu">
|
||||
<li><a href="{% url privacy %}"><span>Privacy</span></a></li>
|
||||
<li><a href="{{privacyurl}}"><span>Privacy</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,7 +2,12 @@
|
|||
{% block title %}Activation complete{% endblock %}
|
||||
{% block content %}
|
||||
<div id="registration">
|
||||
Thanks, activation complete! You may now <a href='{% url auth_login %}'>login</a> using the username and password you set at registration.
|
||||
Thanks, your activation is complete! You may now sign in using the username and password you set at registration:
|
||||
|
||||
|
||||
{% include "login_form.html" %}
|
||||
|
||||
<a href="{% url auth_password_reset %}">Already forgot</a> your password?
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -10,26 +10,7 @@
|
|||
|
||||
<h3>Login to your account:</h3>
|
||||
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="login" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}/{% endif %}" />
|
||||
</form>
|
||||
|
||||
{% include "login_form.html" %}
|
||||
<p>
|
||||
<br>
|
||||
<br>
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<!-- login_form.html -->
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="login" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}/{% endif %}" />
|
||||
</form>
|
|
@ -0,0 +1,2 @@
|
|||
<!-- template needed only to pass tests -->
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!-- template needed only to pass tests -->
|
||||
|
2
urls.py
2
urls.py
|
@ -1,6 +1,8 @@
|
|||
from django.conf.urls.defaults import *
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^accounts/activate/complete/$','django.contrib.auth.views.login',
|
||||
{'template_name': 'registration/activation_complete.html'}),
|
||||
(r'^accounts/', include('registration.backends.default.urls')),
|
||||
(r'^socialauth/', include('social_auth.urls')),
|
||||
(r'^api/', include('regluit.api.urls')),
|
||||
|
|
Loading…
Reference in New Issue