Yes, you want to set that to True.

Just fixed those two errors, and tried to clarify the language regarding 
the URLs.

Anthony

On Tuesday, August 14, 2012 11:31:09 AM UTC-4, JoeCodeswell wrote:
>
> Thanks for the info, everyone. I thought the example might look OK as is, 
> but i really don't understand everything the way you folks do. 
>
> I have a bit of a follow up question. The ENTIRE example *seems* to imply 
> that the following lines are *NEEDED* to enable email verification:
>  auth.settings.registration_requires_verification = False
>
> auth.settings.registration_requires_approval = False
> auth.settings.reset_password_requires_verification = True
>
>  Is that true? 
>
> I want, at least i think i want:
>  registration_requires_verification = True
>
> BTW there's a sample code bug i found in the same section. Replace the 
> double quote (") in the following with a single quote (') and it compiles.
>
> auth.settings.register_onaccept.append(lambda form:\
>
>    mail.send(to='y...@example.com <javascript:>',subject='new user',
>              message="new user email is %s'%form.vars.email))
>
>
> Thanks for the help. And thanks for the great documentation and for caring 
> about it.
>
> Love and peace,
>
> Joe
>
>
>
> On Monday, August 13, 2012 6:09:46 PM UTC-7, JoeCodeswell wrote:
>>
>> Dear web2py folks,
>>
>> In the book it says in /chapter/29/9#Authentication:
>>
>>
>> In Auth, by default, email verification is disabled. To enable email, 
>>> append the following lines in the model where auth is defined:
>>>
>>> 1.
>>> 2.
>>> 3.
>>> 4.
>>> 5.
>>> 6.
>>> 7.
>>> 8.
>>> 9.
>>> 10.
>>> 11.
>>>
>>> auth.settings.registration_requires_verification = False
>>> auth.settings.registration_requires_approval = False
>>> auth.settings.reset_password_requires_verification = True
>>> auth.messages.verify_email = 'Click on the link http://' + \
>>>     request.env.http_host + \
>>>     URL(r=request,c='default',f='user',args=['verify_email']) + \
>>>     '/%(key)s to verify your email'
>>> auth.messages.reset_password = 'Click on the link http://' + \
>>>     request.env.http_host + \
>>>     URL(r=request,c='default',f='user',args=['reset_password']) + \
>>>     '/%(key)s to reset your password'
>>>
>>> You need to replace the string 
>>>
>>> 1.
>>>
>>> 'Click on the link ...'
>>>
>>> in auth.messages.verify_email with the proper complete URL of the 
>>> action verify_email. 
>>
>>
>>
>>
>> For both verify_email and reset_password:
>>  Should I replace 
>>
>> 'Click on the link http://'
>> With:
>> 'Click on the link http://myserver.com/myapp/'
>> Or with:
>> 'Click on the link http://myserver.com/myapp/default/user/verify_email'
>> My guess is the first, but because the book says "proper complete URL", I am 
>> not sure.
>>
>> Thanks in advance for the help.
>>
>> Love and peace,
>>
>> Joe
>>
>>
>>  
>>
>>

-- 



Reply via email to