Does anyone have any advice? On Thursday, April 4, 2013 2:29:55 PM UTC+2, Domagoj Kovač wrote: > > Hi Guys, > > i am new to web2py. I have a problem and i am not sure how to approach it. > I am working on a multitenant application. > > I have two tables: > > Tenants > > - id > - name > - url_sufix > - active > - deleted > > Tenans_users > > - tenant_id > - user_id > > in tenants table url_sufix is a url_sufix, for example, my base > application is on 127.0.0.1.:8000/myapp, and login for the tenant is on > 127.0.0.1.:8000/myapp/url_sufix for example 127.0.0.1.:8000/myapp/tenant_1. > Lets say we have one user that has two tenants. When user logs in trought > 127.0.0.1.:8000/myapp/tenant_1 he is also logged in > 127.0.0.1.:8000/myapp/tenant_2 because he has two tenants, but if user goes > to 127.0.0.1.:8000/myapp/tenant_3 he receives the login form and if > he tries to login, he will receive an error saying "credential are wrong". > > I don't need a working code, just an advice how this could be done. > > >
-- --- 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/groups/opt_out.