Thanks Massimo, Anthony. I am using my own registration process, so 
login_bare is the way to go. I have tested this and works fine!

On Thursday, August 23, 2012 3:40:31 PM UTC+2, Anthony wrote:
>
> If account creation is not going through the usual registration process 
> (i.e., calling auth.register()), you can programmatically log in the user 
> by calling auth.login_bare([email address], [password]) -- so you will 
> need to generate a temporary password.
>
> Anthony
>
> On Thursday, August 23, 2012 8:00:43 AM UTC-4, Daniel Gonzalez wrote:
>>
>> Hi,
>>
>> I would like to implement the following flow:
>>
>>    1. The user provides his email address, and clicks "register"
>>    2. An account is created, and an email is sent with information 
>>    (eventually with a confirmation link, but I will do this later)
>>    3. The user is then *automatically* logged in.
>>    4. Then I will probably force the user to choose a password, so that 
>>    the next time he can log in normally
>>
>> I am now stuck in point 3: I want the user to be automatically logged-in, 
>> even though no password is defined, and without the user entering any extra 
>> information.
>> Since he has already provided the email address, and this is a new 
>> account, he should be immediately be logged-in.
>> How can I programmatically trigger a log-in in web2py? Will this also set 
>> the necessary cookies in the client side?
>>
>> Thanks
>> Daniel
>>
>

-- 



Reply via email to