Changeset 3515
- Timestamp:
- 04/14/08 16:46:08 (5 months ago)
- Files:
-
- accountmanagerplugin/0.10/acct_mgr/db.py (modified) (3 diffs)
- accountmanagerplugin/trunk/acct_mgr/db.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
accountmanagerplugin/0.10/acct_mgr/db.py
r2120 r3515 56 56 "AND sid=%s", (hash, user)) 57 57 if cursor.rowcount > 0: 58 db.commit() 58 59 return False # updated existing password 59 60 cursor.execute("INSERT INTO session_attribute " … … 61 62 "VALUES (%s,1,'password',%s)", 62 63 (user, hash)) 64 db.commit() 63 65 return True 64 66 … … 88 90 # TODO cursor.rowcount doesn't seem to get # deleted 89 91 # is there another way to get count instead of using has_user? 92 db.commit() 90 93 return True accountmanagerplugin/trunk/acct_mgr/db.py
r2127 r3515 56 56 "AND sid=%s", (hash, user)) 57 57 if cursor.rowcount > 0: 58 db.commit() 58 59 return False # updated existing password 59 60 cursor.execute("INSERT INTO session_attribute " … … 61 62 "VALUES (%s,1,'password',%s)", 62 63 (user, hash)) 64 db.commit() 63 65 return True 64 66 … … 88 90 # TODO cursor.rowcount doesn't seem to get # deleted 89 91 # is there another way to get count instead of using has_user? 92 db.commit() 90 93 return True
