Re: [web2py] Re: changing %(link)s
Great, Anthony! You are a legend! Thanks 2018-08-20 12:55 GMT-03:00 Anthony : > It also has a "key" key available, so you can do: > > auth.messages.reset_password = 'Click on the link > https://yourdomain.com/user/reset_password?key=%(key)s to reset your > password' > > Anthony > > On Monday, August 20, 2018 at 11:12:29 AM UTC-4, Gualter Portella wrote: >> >> Thanks, Anthony! >> >> And what about the auth.messages.reset_password? It needs the hashcode to >> redirect to the specfic user, right? >> >> Any ideas. >> >> Once again thanks, >> >> Cheers >> >> 2018-08-20 9:36 GMT-03:00 Anthony >> >>> 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 a topic in the >>> Google Groups "web2py-users" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>> pic/web2py/9zinYUcXA7w/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Gualter Portella >> > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/web2py/9zinYUcXA7w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Gualter Portella -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: changing %(link)s
It also has a "key" key available, so you can do: auth.messages.reset_password = 'Click on the link https://yourdomain.com/user/reset_password?key=%(key)s to reset your password' Anthony On Monday, August 20, 2018 at 11:12:29 AM UTC-4, Gualter Portella wrote: > > Thanks, Anthony! > > And what about the auth.messages.reset_password? It needs the hashcode to > redirect to the specfic user, right? > > Any ideas. > > Once again thanks, > > Cheers > > 2018-08-20 9:36 GMT-03:00 Anthony > >> 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 a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/9zinYUcXA7w/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Gualter Portella > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: changing %(link)s
Thanks, Anthony! And what about the auth.messages.reset_password? It needs the hashcode to redirect to the specfic user, right? Any ideas. Once again thanks, Cheers 2018-08-20 9:36 GMT-03:00 Anthony : > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/web2py/9zinYUcXA7w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Gualter Portella -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: changing %(link)s
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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.