What about using the auth groups?
See here: http://www.web2py.com/book/default/chapter/08#Decorators
You can use the function decorator:
@auth.requires_login()
for general users (and admins)
and use:
@auth.requires_membership('admin')
for admin pages
Then all you have to do is add admin users to the admin group. See the
book :)
On Jun 22, 1:31 pm, pepe_eloy <[email protected]> wrote:
> Hello!
>
> Is it possible to use 2 auth tables? I need one for register users and
> another to register admins of my system
>
> Regards