Hi,
I was looking for a bug on identity for two days and finaly I found it.
in my app.cfg I defined the form as:
identity.form.user_name="username"
identity.form.password="password"
identity.form.submit="login"
and my form had the name fields:
user_name
password
login
in identity_from_form() of visit.py
we have a try that obscure any possibility of debugging, take a look...
try:
user_name = params.pop(self.user_name_field)
....
if identity is None:
log.warning( "The credentials specified weren't valid" )
return None
return identity
except KeyError:
return None
without the try: except:
it will displays KeyError 'username', but....
is there a reason to return None instead of an significant message?
jo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---