auth = Auth(db)
admin_auth = Auth(db)

auth.settings.....  #customize auth table names here

admin_auth..... #customize admin_auth table names here

The above is to avoid the duplicate of table name in the same db.

Now in functions

@auth.requires
@admin_auth.requires

I did not tested it, but should work, as both are different instances of
auth. optionally you can have different dbs

CAn you test and tell if it works?



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]




On Wed, Jun 22, 2011 at 3: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
>

Reply via email to