See [1]. I'm working on a project that needs seller/buyer logins, where the seller needs to input information about the store and the buyer must provide and address. But instead of be using the auth_user table to store that information, I'm using db.store and db.address, and then after the user(seller/buyer) sign up he is redirected to a controller that provides a form to input the address/store. The good part about his method is to be possible to have more than one address and more than one store by the same user.
[1] https://stackoverflow.com/questions/17380476/web2py-authenticating-two-types-of-profile Em sex, 29 de jan de 2016 às 19:58, Ron Chatterjee <achatterjee...@gmail.com> escreveu: > Is there an example of how to split the auth_user in two tables that > allows people to sign up using the same way but allowing in creating two > profiles (lets say one for seller and one as a buyer)? Anyone did something > like that? > > > > On Saturday, February 28, 2015 at 8:07:03 AM UTC-5, Jon M. wrote: >> >> Currently working only with the 'auth_user' table, and I must say that I >> works like expected. Following the advices from Mr. Di Pierro, won't make >> any split of types of users or something like that, and will keep working >> and improving the use of this table and database in general. Thanks a >> lot!!! :D >> > -- > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.