I wish users to login using their username so I would like to add username 
to the users table.

So far I have made this change

auth.define_tables(username=True, signature=False)

which adds the field(column) to the table.

However I read that I should also impose uniqueness on the field by using 
this :-

auth_table.username.requires = IS_NOT_IN_DB(db, auth_table.username)

But I cannot work out where this should go, I have tried a number of 
options in db.py
I am unsure where it goes in relation to the auth.define statement 
(presumably before it) and how I obtain auth_table.


-- 



Reply via email to