In my web2py app, I want to allow members that have the same key access the
same information. The first user uses a key to register (key added to the
Auth_user) and no verification is needed. Now, when the second user wants
to sign up and uses the same key, I want an email to be sent to the firs
Is there a way to get the client device information such as the device and
OS used? I know that we can get the public IP but for device and OS type
could not find any reference.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
Back again to impersonate issue. I have the sysadmin user member of
impersonate like the attached pic.
[image: image.png]
My code to impersonate user 25 as follows "Forbidden"
def execdal():
user=auth.login_bare("sysadmin","mypwd")
auth.impersonate(25)
return dict(a=user)
Em qua., 1
bad english in previous email. Sorry about that.
the user sysadmin belongs to group "impersonate" ike attached pic in
previous email.
My code to impersonate user sysadmin as user 25 returns "Forbidden"
any help ?
Regards
António
Em qui., 16 de jan. de 2020 às 15:42, António Ramos
escreveu:
>
apparently have to add_permission like
user = auth.login_bare("user", "pwd")
auth.add_permission(impersonateGroupID, "impersonate", db.auth_user,0)
auth.impersonate(46)
return auth.user_id
Em qui., 16 de jan. de 2020 às 15:46, António Ramos
escreveu:
> bad english in previous e
On Wednesday, January 15, 2020 at 7:06:27 AM UTC-8, Carlos Correia wrote:
>
> Às 05:45 de 15/01/20, Dave S escreveu:
>
>
>
> On Sunday, January 12, 2020 at 9:36:14 AM UTC-8, Carlos Correia wrote:
>>
>> Às 22:51 de 10/01/20, Dave S escreveu:
>> > For web2py/pydal when the backend is PostGres, ar
On Thursday, January 16, 2020 at 5:49:47 AM UTC-8, Aydin wrote:
>
> In my web2py app, I want to allow members that have the same key access
> the same information. The first user uses a key to register (key added to
> the Auth_user) and no verification is needed. Now, when the second user
> wa
Thanks for the reply. I will update this on the path I chose.
On Thursday, January 16, 2020 at 5:05:32 PM UTC-5, Dave S wrote:
>
>
>
> On Thursday, January 16, 2020 at 5:49:47 AM UTC-8, Aydin wrote:
>>
>> In my web2py app, I want to allow members that have the same key access
>> the same informat
I have added an extra field in the auth_user and I want to check user's
entry with a pre-poulated field (call field1) in another table (call
Table1) when the user presses sign up.
If a user's entry existed then set the registration_key to " " from
"Pending".
I formed the following from what I
9 matches
Mail list logo