allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [3/5] git commit: [#5909] Added /auth/prefs redirect to /auth/subscriptions
Date Wed, 13 Mar 2013 20:21:14 GMT
[#5909] Added /auth/prefs redirect to /auth/subscriptions

Signed-off-by: Cory Johns <johnsca@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 <johnsca@geek.net>
Authored: Wed Mar 13 19:33:34 2013 +0000
Committer: Cory Johns <johnsca@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):


Mime
View raw message