changeset 2018:dbf06dea00aa

MoinLogin auth: continue if a previous auth was successful
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sat, 21 Apr 2007 03:39:41 +0200
parents dd3a1da58c28
children 149573c7ecaf
files MoinMoin/auth/__init__.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/__init__.py	Fri Apr 20 21:59:19 2007 +0200
+++ b/MoinMoin/auth/__init__.py	Sat Apr 21 03:39:41 2007 +0200
@@ -124,6 +124,10 @@
         username = kw.get('username')
         password = kw.get('password')
 
+        # simply continue if something else already logged in successfully
+        if user_obj and user_obj.valid:
+            return user_obj, True, None, None
+
         if not username and not password:
             return user_obj, True, None, None