Re: [web2py] username or email

2011-02-03 Thread Marin Pranjic
not sure if something like that is implemented, but here's what you can do: before validating form: 1. check if email is given in post vars (instead of username) 2. if it is, make select query to db to find out username related to given email 3. change variable (if email is given in username field

[web2py] username or email

2011-02-03 Thread mattynoce
hi all. i know we can use username instead of email by simply adding username=True to auth, but i wanted to know if there happened to be a way to use either. for example, i have parent and children users, and i want kids to use username, since they might not have email addresses. but i want parent