Thanks Jason The case with the user id, is this is the same number to appear in a paper/plastic id card. Because of this is important to me don't missing the numeration
Regards On 22 jun, 14:13, Jason Brower <[email protected]> wrote: > That ID feild should not do anything but keep a name that can't be > repeated in the system. If your wanting to count or something with that > number, there are much better ways. > Or am I missing something here. > If you really want to use to auth tables I think you can just make auth > objects and reference to each when needed. Lots of work for counting. > BR, > Jason Brower > On 06/22/2011 09:49 PM, pepe_eloy wrote: > > . > > > > > > > Thanks kasapo for your answer. > > > Yes, I'm using decorators and groups. The matter is I have user id > > like 0000000x (sequential, is the same that "id" field) and I don't > > like to break the numeration when I adding an "admin" user. > > > Regards > > > Jos� Eloy Torres > > > On 22 jun, 13:44, kasapo<[email protected]> wrote: > >> 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

