Just hard code it: auth.messages.verify_email = 'Click on the link https://yourdomain.com/user/verify_email to verify your email'
Anthony On Sunday, August 19, 2018 at 10:30:07 PM UTC-4, Gualter Portella wrote: > > Hi, > > Can anybody provide me with specfic directions on how to do the following > procedure: > > 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 > > auth.settings.registration_requires_verification = > Trueauth.settings.registration_requires_approval = > Falseauth.settings.reset_password_requires_verification = > Trueauth.messages.verify_email = 'Click on the link %(link)s to verify your > email'auth.messages.reset_password = 'Click on the link %(link)s to reset > your password' > > In the two auth.messages above, you may need to replace the URL portion > of the string with the proper complete URL of the action. This is necessary > because web2py may be installed behind a proxy, and it cannot determine its > own public URLs with absolute certainty. The above examples (which are the > default values) should, however, work in most cases. > > > How can I change the %(link)s of lines 4 and 5 above. The app is in > production, but still pointing to http://127.0.0.1:8000/user/verify_email > > > many thanks in advance, > -- 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.

