You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/03/13 20:33:49 UTC
git commit: [#5909] Added /auth/prefs redirect to /auth/subscriptions
Updated Branches:
refs/heads/cj/5909 562223989 -> 29fb71382
[#5909] Added /auth/prefs redirect to /auth/subscriptions
Signed-off-by: Cory Johns <jo...@geek.net>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/29fb7138
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/29fb7138
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/29fb7138
Branch: refs/heads/cj/5909
Commit: 29fb7138233212064338efe22c938f6e45c1fdb5
Parents: 5622239
Author: Cory Johns <jo...@geek.net>
Authored: Wed Mar 13 19:33:34 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Wed Mar 13 19:33:34 2013 +0000
----------------------------------------------------------------------
Allura/allura/controllers/auth.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/29fb7138/Allura/allura/controllers/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
index e52ea5e..7abdbc8 100644
--- a/Allura/allura/controllers/auth.py
+++ b/Allura/allura/controllers/auth.py
@@ -67,6 +67,14 @@ class AuthController(BaseController):
self.subscriptions = SubscriptionsController()
self.oauth = OAuthController()
+ @expose()
+ def prefs(self, *args, **kwargs):
+ '''
+ Redirect old /auth/prefs URL to /auth/subscriptions
+ (to handle old email links, etc).
+ '''
+ redirect('subscriptions')
+
@expose('jinja:allura:templates/login.html')
@with_trailing_slash
def index(self, *args, **kwargs):