Sorry. Do not understand. Can you explain again how the verification would 
work without the link?

On Wednesday, 20 July 2016 02:24:39 UTC-5, Annet wrote:
>
> I have this settings:
>
> auth.settings.actions_disabled = ['register', 'impersonate', 'groups']
> auth.settings.registration_requires_verification = False
> auth.settings.registration_requires_approval = False
>
> and a custom register function in the default controller:
>
>
> def register():
>     form = SQLFORM.factory(db.auth_user,
>                   Field('password_two', type='password',
>                         requires = IS_EQUAL_TO(request.vars.password, 
> error_message='passwords do not match')),
>                            db.auth_dummy)
>
>     if form.validate():
>         # amongst others insert user and dummy data
>         ......
>
>         usercontext = dict()
>         usermessage = response.render('default/register_mail.html', 
> usercontext)
>         usermail = mail.send(to=[recipient], subject='', message=[None, 
> usermessage])
>
>     elif form.errors:
>         get_flash(response, None, 'danger', 'error')
>     elif not response.flash:
>         get_flash(response, None, 'info', 'default')
>
>     return dict(form=form)
>
>
> What I want is to prevent web2py from sending the verification email and 
> include the link
>
> url = 'https://' + 
> request.env.http_host+URL('default','user',args=['verify_email']) + '/'+ 
> registration_key
>
> in default/register_mail.html
>
> When the user clicks the link I want the verification to take place but I 
> also want to insert memberships etc.
>
> What is the best way to code this staying as close to web2py's access 
> control as possible?
>
>
> Kind regards,
>
> Annet
>
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to