i got it.
if 'username' in user.fields:
username = 'username'
else:
username = 'email'
thanks too.
2009/3/2 maplye <[email protected]>
> thanks Francisco Gama *
> *
> *and how to login with username not email?
> *
> 2009/3/2 Francisco Gama <[email protected]>
>
>
>> Here is one example on how you can do it (in line 18...):
>>
>> http://groups.google.com/group/web2py/attach/e27cf6d6dd2c521c/auth.py?part=4&view=1
>>
>> On Mar 2, 4:57 am, 姚国荣 <[email protected]> wrote:
>> >
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---