could you provide more info? (tg-admin info) + a stack trade of your error.

I just check agains the head and the lines are change so the your not running SVN

On 4/10/06, Bob Rogers <[EMAIL PROTECTED]> wrote:

I had to make the following change in soprovider.py in order for
password hashing to work correctly.  Being new to TG, I'm not sure
whether this counts as a real bugfix or an unnecesarry workaround of
something I did wrong in my app and/or config:


--- soprovider.py.original  Sun Apr  9 01:37:20 2006
+++ soprovider.py.bugfix    Sun Apr  9 12:32:32 2006
@@ -156,9 +156,9 @@

         # Default encryption algorithm is to use plain text passwords
         algorithm= get( "identity.soprovider.encryption_algorithm",
None )
-        if "md5"==algorithm:
+        if "md5"==algorithm.__name__:
             self.encrypt_password= lambda pw: md5.new(pw).hexdigest()
-        elif "sha1"==algorithm:
+        elif "sha1"==algorithm.__name__:
             self.encrypt_password= lambda pw: sha.new(pw).hexdigest()
         else:
             self.encrypt_password= lambda pw: pw






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to