[web2py] Re: Get the auth_user.id after login

2016-03-09 Thread Anthony
On Wednesday, March 9, 2016 at 2:37:35 PM UTC-5, Ron Chatterjee wrote: > > db.auth_user.id > No, db.auth_user.id is simply a Field object, representing the "id" field in the auth_user table model definition. > Or > auth.user_id > In the above, "auth" refers to the instantiation of the Auth

Re: [web2py] Re: Get the auth_user.id after login

2016-03-09 Thread prashant joshi
db.auth_user.id... id from auth_user table On Thu, Mar 10, 2016 at 1:07 AM, Ron Chatterjee wrote: > db.auth_user.id > Or > auth.user_id > > > On Wednesday, March 9, 2016 at 2:29:55 PM UTC-5, prashant joshi wrote: >> >> how to get auth_user.id after login?? >> means if

[web2py] Re: Get the auth_user.id after login

2016-03-09 Thread Ron Chatterjee
db.auth_user.id Or auth.user_id On Wednesday, March 9, 2016 at 2:29:55 PM UTC-5, prashant joshi wrote: > > how to get auth_user.id after login?? > means if user1 is login then show his auth_user.id > if user2 login then show his idwhich is query or method for this > -- Resources: -

[web2py] Re: Get the auth_user.id after login

2016-03-09 Thread Anthony
Not quite sure what you mean. It's auth.user_id, not auth_user.id, and auth.user_id is always the ID of the currently logged in user (i.e., within each request, the value of auth.user_id is the ID of the user that made the request). auth.user_id is None if the user making the current request is