On Monday, June 13, 2016 at 1:57:38 PM UTC-7, Marty Jones wrote:
>
> Hi -
>
> I created a custom auth_user table with a new field ('company') and am
> having trouble accessing it in my controller:
>
The book recommends using auth.settings.extra_fields
<URL:http://web2py.com/books/default/chapter/29/09/access-control#Customizing-Auth>
unless you really have to define a custom table.
In either case, the customization goes somewhere between the "auth =
Auth(db)" and "auth.define_tables()".
You may need to show us more code.
/dps
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.