Changeset 3553
- Timestamp:
- 04/25/08 18:40:35 (9 months ago)
- Files:
-
- tgauthplugin/0.11/tgauth/main.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tgauthplugin/0.11/tgauth/main.py
r3552 r3553 30 30 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 31 32 import hashlib 32 try: 33 from hashlib import sha1 34 except ImportError: 35 from sha import new as sha1 33 36 34 37 from trac.core import Component, implements … … 89 92 if not hashed: 90 93 return False 91 return hashlib.sha1(password).hexdigest() == hashed94 return sha1(password).hexdigest() == hashed 92 95 93 96 def delete_user(self, user):
