[snowy] Use LOGIN_REDIRECT_URL if no other URL is given
- From: Sander Dijkhuis <sanderd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snowy] Use LOGIN_REDIRECT_URL if no other URL is given
- Date: Mon, 1 Mar 2010 18:11:18 +0000 (UTC)
commit 1c6569ebc6978a041012c3a6e9133b1b470b2478
Author: Sander <sander dijkhuis gmail com>
Date: Mon Mar 1 15:56:25 2010 +0100
Use LOGIN_REDIRECT_URL if no other URL is given
Django's login view uses settings.LOGIN_REDIRECT_URL by default,
so there is no need to specify the 'next' parameter.
No behavior is changed, but it is now possible to enter a custom
redirect URL in the setings.
https://bugzilla.gnome.org/show_bug.cgi?id=605183
accounts/templates/registration/login.html | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/accounts/templates/registration/login.html b/accounts/templates/registration/login.html
index 6945741..3b6d02c 100644
--- a/accounts/templates/registration/login.html
+++ b/accounts/templates/registration/login.html
@@ -23,8 +23,6 @@
<input type="submit" value="login" />
{% if next %}
<input type="hidden" name="next" value="{{ next }}" />
-{% else %}
-<input type="hidden" name="next" value="/" />
{% endif %}
</form>
{% endblock %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]