[extensions-web] auth: Don't go to the profile page after login
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] auth: Don't go to the profile page after login
- Date: Sun, 3 Jun 2012 01:51:03 +0000 (UTC)
commit 70425e985f6ac840f74697361942992dcb52851e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Jun 2 21:39:45 2012 -0400
auth: Don't go to the profile page after login
Instead, supply a proper next
.../templates/registration/login_popup_form.html | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/auth/templates/registration/login_popup_form.html b/sweettooth/auth/templates/registration/login_popup_form.html
index 1e8c87e..2cae1e6 100644
--- a/sweettooth/auth/templates/registration/login_popup_form.html
+++ b/sweettooth/auth/templates/registration/login_popup_form.html
@@ -1,6 +1,7 @@
<form action="{% url auth-login %}" method="POST" class="login_popup_form user_popup">
{% csrf_token %}
{{ login_popup_form.as_plain }}
+ <input type="hidden" name="next" value="{{ request.path }}">
<input type="submit" value="Login">
<a href="{% url registration_register %}">Register</a>
</form>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]