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 21:21:14 UTC
[3/5] git commit: [#5909] Added /auth/prefs redirect to
/auth/subscriptions
[#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/7eee5d9d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/7eee5d9d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/7eee5d9d
Branch: refs/heads/master
Commit: 7eee5d9d998d9bbc1c151a42a16db75889d2f4a6
Parents: b55760a
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 20:20:47 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/7eee5d9d/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):