>
> To validate a user-password pair, I can use auth.login_bare. 
> Two questions: 
>
>    1. Auth.login_bare does not cause the user to be logged in: for 
>    instance, auth.user_id is not set afterwards.  Is there a way to also log 
>    in a user, not only validate the username/password pair?
>
> It should log in the user and set auth.user_id. Actually, .user_id is a 
property (see 
http://code.google.com/p/web2py/source/browse/gluon/tools.py#1165), so if 
auth.user.id exists, then so should auth.user_id. Are you sure the username 
and password are being accepted?

Anthony

Reply via email to