Hi all,
I've started a new project with the included authentication table/method.
Afterward I created all the tables in sqlite (tg-admin sql create) and then
I added manually a user in tg-admin shell. (I also tried with the toolbox
same result).
User( user_name=u'francis',user_firstname=u'Francis', email_address="
u'[EMAIL PROTECTED]'", display_name=u'francis', password='')
with no password.
me = User.get(1)
me._set_password('mypasswd')
when I print "me" the result is an unicode unencrypted password. (it shows
exactly u'mypasswd')
is that normal, considering the code in the model :
def _set_password(self, cleartext_password):
"Runs cleartext_password through the hash algorithm before saving."
password_hash = identity.encrypt_password(cleartext_password)
self._SO_set_password(password_hash)
I guest _SO_ is a call to the methods parent.
How can I have real encrypted password with the default login facility?
Thank you
Francis
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---