Author: tmckay
Date: 2012-05-30 18:00:55 +0000 (Wed, 30 May 2012)
New Revision: 5392
Modified:
trunk/cumin/python/cumin/authenticator.py
Log:
Find user must check for empty list as well as False. Make the test more general.
Modified: trunk/cumin/python/cumin/authenticator.py
===================================================================
--- trunk/cumin/python/cumin/authenticator.py 2012-05-23 20:02:16 UTC (rev 5391)
+++ trunk/cumin/python/cumin/authenticator.py 2012-05-30 18:00:55 UTC (rev 5392)
@@ -154,7 +154,9 @@
def find_user(self, user):
conn, res = self._find_user(user)
- return res is not False
+ if res:
+ return True
+ return False
def change_pw(self, user, oldpass, newpass):
conn, res = self._find_user(user)
Show replies by date