Hi Michael,

>From what I know till now:
- about the ID - "session.auth.user.id" or just "auth.user.id"
- about the username - it's usually the email address (see auth_user
table), i.e. "auth.user.email".


On Mar 27, 5:42 am, Michael <michael.no...@gmail.com> wrote:
> Yea I just noticed this also.
>
> Also, does anyone know how to get a user ID or session information?
>
> When a user log's in, in my template it would be nice to have the
> users name greeted like
>
> <h1>Welcome, [session.userid]</h1>
>
> and also, using a current user-id as a default for a SQLFORM?
>
> thanks guys!
>
> On Mar 26, 7:39 pm, Vidul Petrov <vidul.r...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > All online examples about the auth object decorator usage seem like
> > this (note ":" at the end):
>
> > @auth.requires_login():
>
> > and this does not work, unless it's changed to:
>
> > @auth.requires_login()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to