changeset 2919:8431d0d48515 reyha_verma/fixes-482-1426427038125

fixes #482
author Reyha Verma <reyhaverma@gmail.com>
date Sun, 15 Mar 2015 13:44:06 +0000
parents ac10a2e3eaf6
children 95d55587c704
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Fri Feb 13 21:14:01 2015 +0100
+++ b/MoinMoin/apps/frontend/views.py	Sun Mar 15 13:44:06 2015 +0000
@@ -1569,7 +1569,11 @@
 
 @frontend.route('/+login', methods=['GET', 'POST'])
 def login():
-    # TODO use ?next=next_location check if target is in the wiki and not outside domain
+    if flaskg.user.valid:
+        return redirect('Home')
+
+
+# TODO use ?next=next_location check if target is in the wiki and not outside domain
     title_name = _(u'Login')
 
     # multistage return