[web2py] Web2py registration of a second user verified by the first user

2020-01-16 Thread Aydin
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

[web2py] Web2py client device information

2020-01-16 Thread Aydin
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

[web2py] Re: auth.impersonate not working?!

2020-01-16 Thread António Ramos
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

[web2py] Re: auth.impersonate not working?!

2020-01-16 Thread António Ramos
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: >

[web2py] Re: auth.impersonate not working?!

2020-01-16 Thread António Ramos
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

Re: [web2py] blob fields with PostGres

2020-01-16 Thread Dave S
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

[web2py] Re: Web2py registration of a second user verified by the first user

2020-01-16 Thread Dave S
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

[web2py] Re: Web2py registration of a second user verified by the first user

2020-01-16 Thread Aydin
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

[web2py] User registration additional conditions

2020-01-16 Thread Aydin
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