changeset 2921:3862a0aede87

merged
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 27 Apr 2015 22:02:22 +0200
parents 70d113e58edc (current diff) 95d55587c704 (diff)
children 4ab27780d078
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Mon Apr 27 21:53:38 2015 +0200
+++ b/MoinMoin/apps/frontend/views.py	Mon Apr 27 22:02:22 2015 +0200
@@ -1569,6 +1569,10 @@
 
 @frontend.route('/+login', methods=['GET', 'POST'])
 def login():
+    if flaskg.user.valid:
+        return redirect(url_for('.show_root'))
+
+
     # TODO use ?next=next_location check if target is in the wiki and not outside domain
     title_name = _(u'Login')