-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i found the same.

you may try:

user.password=identity.encrypt_password(password)

alex

Patrick Lewis wrote:
> identity.saprovider.encryption_algorithmOn Jun 26, 7:58 am, Sanjay
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I want to use md5 encryption in my application and hence I have the
>> following line in my app.cfg:
>>
>> identity.saprovider.encryption_algorithm='md5'
>>
>> As I understand from the commented documentation in app.cfg (see
>> below), if I assign a text password to any user object like this:
>>
>> u.password = 'clear text'
>>
>> the 'clear text' should automatically get md5 hashed. But it is not
>> happening in my user registration process. Am I missing something?
>>
>> I am using SQLAlchemy.
>>
> 
> You are right, that should get hashed automatically.  Can you see what
> tg thinks the config variable is in your controller? i.e. what is
> tg.config.get('identity.saprovider.encryption_algorithm')? Perhaps
> something is messed up there.
> 
> 
> > 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRoEdhdpwN1sq38njAQKQLgP+IJSVNbHxq2tnHbBVIdefzMhKfi8ZVP3u
ZbZRXJC6hUQ7a+7hbLlHzxfnS1y99cym2lBWXkJfDUUOankupJJ/Htk4staUdI3C
KRzzxhrkVV8Cw46pbdMWHUS7hXTguILori9o2fqp7LTFAmwX2L85L3HQzLTPeIP1
OBFwpHpjmy0=
=byua
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to