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 
not logged in.

Anthony

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 id,,,,which is query or method for this????
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to