hello one and all,
playing with auth_user. trying to follow the manual with a bit of
modification, thinking:
auth = Auth(db) # authentication/
authorization
auth.settings.extra_fields['auth_user'] = [
Field('prefix_title', length=12, comment='Enter your Name
Prefix'),
Field('professional_title', length=12, comment='if you have one,
Enter your Professinal Title'),
Field('mailing_address', length=1024, comment='Full Mailing
Address including Street, City, State, Zip/Postal, and Country'),
Field('Telephone', length=32, comment='include Area Code or
Country Code if outside the USA')]
db.auth_user.prefix_title.requires =
IS_IN_SET(('Mr.','Ms.','Mrs.','Dr.','Rev.','Hon.'))
db.auth_user.professional_title.requires =
IS_IN_SET(('','Ph.D.','M.D.','Ed.D.','M.B.A.','C.P.A.','P.A.','M.S.','M.A.'))
auth.define_tables()
but the bottom two requires to fill the lists are bugging out.
suggestions on this modify? i don't need a custom auth_user so that
is why i am trying to modify the default one.
also, i would like to change to field order. how can i do that also?
thank you in advance and have a great day. lucas