Commit 706822d5 authored by christophe siraut's avatar christophe siraut

Amélioration de la gestion des nouveaux inscrits

parent 7a42dfd9
......@@ -9,7 +9,7 @@ def register(request):
form = UserCreationForm(request.POST)
if form.is_valid():
new_user = form.save()
return HttpResponseRedirect("/user/login/")
return HttpResponseRedirect("/user/success")
else:
form = UserCreationForm()
return render_to_response("registration/register.html", {
......
{% extends "base.html" %}
{% block content %}
<h2>Success</h2>
<p class=info>Your account has been created. You may now <a href='/user/login'>login</a></p>
<ul>
<li><a href="/user/login">Authenticate</a></li>
<li><a href="/">Stay anonymous</a></li>
</ul>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment