The db.auth_user record of the current logged in user is accessible via
auth.user, and the ID of that user is accessible in auth.user_id (as well as
auth.user.id). Both auth.user and auth.user_id return None if the user is
not logged in. For the name, auth.user.first_name and auth.user.last_name.
See the callout box at the end of this
section: http://web2py.com/book/default/chapter/08#Authentication.
Anthony
On Friday, October 7, 2011 8:34:14 AM UTC-4, Web2Py Freak wrote:
Dear All ,
How Can I get the name of the user who is logged in my website ??