I'll try and include more information, as I may not have been clear.
I have 3 applications (my_admin,clients,vendors)
the original database lives under the my_admin application and so my
connection process looks like this...
if request.application=='my_admin':
db = DAL('sqlite://storage.sqlite')
else:
db =
DAL('sqlite://../../my_admin/databases/storage.sqlite',migrate_enabled=False)
if a user registers via: http://mysite.com/clients/default/user/register
I make sure to add that user to a group called 'clients'
here is the problem....
the user cannot log back in through
http://mysite.com/clients/default/user/login however they CAN login
through http://mysite.com/my_admin/default/user/login they just won't be
able to see anything because I've restricted that app to only users in the
my_admin group.
How do I get around this?
On Thursday, December 6, 2012 9:55:08 AM UTC-8, pumplerod wrote:
>
> maybe I'm missing something. I thought this is what I was doing by
> placing each user in a separate group based on the app they logged in with.
>
> I do see mention of the hmac_key in the web2py book, but not where to find
> it, or how it gets generated in the first place if I'm not using digitally
> signed URLs. At least I didn't think so. Is it happening without me
> knowing?
>
> On Wednesday, December 5, 2012 5:42:54 PM UTC-8, Ovidio Marinho wrote:
>>
>> Why not use groups of users for each application?
>>
>>
>>
>> Ovidio Marinho Falcao Neto
>> Web Developer
>> [email protected]
>> [email protected]
>> ITJP - itjp.net.br
>> 83 8826 9088 - Oi
>> 83 9336 3782 - Claro
>> Brasil
>>
>>
>>
>>
>> 2012/12/5 pumplerod <[email protected]>
>>
>>> I have several apps running and am successfully able to add users to the
>>> auth_user table during registration. I keep track of which app they
>>> registered through to setup certain permissions. This all seems to work
>>> fine. However, I am only able to login the user via one app (the initial
>>> one I used to create models, I have since copied the models files to every
>>> app). If all the auth tables are shared and I can create a new user, why
>>> can the not log in under the same app they registered with?
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>
>>
--