I seem to only be able to log in with email. When I added auth.define_tables(username=True) in db.py, it always says "invalid user" when I try to log in.
I'm using the default login form, are there anything I should add into db.py to be able to login with username?