On Sun, Apr 26, 2009 at 4:15 PM, Álvaro Justen [Turicas] <[email protected]> wrote: > On Sun, Apr 26, 2009 at 3:50 PM, Alexei Vinidiktov > <[email protected]> wrote: >> Both on the local and remote server the user who's being registered >> gets an email with a broken link like this: >> >> """ >> Click on the link >> http://...verify_email/078f3dad-f248-4db6-8aee-603da176ad49 to verify >> your email >> """ >> >> It should look like this: >> >> http://domain.com/application/default/user/verify_email/078f3dad-f248-4db6-8aee-603da176ad49 >> > > web2py doesn't handle this automaticaly. You can change this message > with something like this: > > from gluon.tools import Auth > auth = Auth(...) > ... > auth.messages.verify_email = 'Click on the link > http://Your_site's_URL/verify_email/%(key)s to verify your email' > > It can be added in future to web2py handles that automaticaly, getting > data from request - but for this work we must implement a way to get > FULL URL requested by user - it is a routes.py feature that I > requested some time ago.
Hi Alexei, there is a new feature in trunk: request.env.original_uri. With this and other request.env vars (path_info, http_host) I think you can do what you want (specify verification URL in a "dynamic" way). -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

