Changeset 3558
- Timestamp:
- 04/25/08 22:08:00 (7 months ago)
- Files:
-
- phpbbauthplugin/0.11/phpbbauth/main.py (modified) (2 diffs)
- phpbbauthplugin/0.11/setup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
phpbbauthplugin/0.11/phpbbauth/main.py
r3538 r3558 83 83 if not hashed: 84 84 return False 85 self._populate_user_session(self._get_userinfo(user)) 85 86 return crypt_private(password, hashed, self.hash_prefix) == hashed 86 87 … … 102 103 cnx.close() 103 104 return pwhash 105 106 def _get_userinfo(self, user): 107 """ Pull user info from TG """ 108 cnx = PhpDatabaseManager(self.env).get_connection() 109 cur = cnx.cursor() 110 cur.execute('SELECT user_name, email_address, created, display_name' 111 ' FROM %s WHERE active = True AND user_name = %%s' 112 % self.table, (user,)) 113 userinfo = [u for u in cur] 114 cnx.close() 115 return userinfo 104 116 105 117 def _populate_user_session(self, userinfo): phpbbauthplugin/0.11/setup.py
r3538 r3558 5 5 setup( 6 6 name = 'PhpBBAuth', 7 version = '0. 1',7 version = '0.2', 8 8 author = 'John Hampton', 9 9 author_email = 'pacoapblo@pacopablo.com', … … 18 18 ], 19 19 20 classifiers = [ 21 'Framework :: Trac', 22 ], 23 24 keywords="acct_mgr phpbb", 25 20 26 entry_points = { 21 27 'trac.plugins': [
