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? 
   2. Suppose I want to programmatically create a user account (e.g., to 
   build a back end for a mobile app, that only has a json interface).  Is 
   there an auth.create_user(first_name, last_name, email, password) method? 
   
Thanks! 

Luca

Reply via email to