Awesome! Thanks Mathieu. :)
On Jun 25, 4:54 pm, Mathieu Clabaut <[email protected]> wrote: > In your model (db.py) set at the beginning : > > from gluon.tools import * > auth=Auth(globals(),db) > auth.define_tables(username=True) > > Best regards, > > -Mathieu > On Fri, Jun 25, 2010 at 14:03, Jacques van der Merwe > <[email protected]>wrote: > > > Greetings all, > > > I would like to use an alternative authentication like LDAP for > > example, but would like to use the 'username' field instead of the > > default 'email' field. In the web2py book, it says "By default, Auth > > uses email and password for login, but it can, optionally, use > > username instead of email." I am struggling to find where to set this > > option. I've dug around in tools.py where the Auth class is defined, > > but I still cannot locate it. > > > I would assume that when this option is set, the user/login form > > changes the email field to a username field? I hope this is the > > case. :) > > > Any advice would be most welcome! > > > Cheers, > > -Jacques

