I have an https app which send password reset emails as http even when the user is visiting https. The links don't work. I think that by default, the links should use the same scheme as the URL visited by the user, but this isn't happening, at least for me
The code base is R-2.13.4 When I look at gluon/tools.py I see that the URL is constructed with scheme=True This scheme is propagated to the URL helper, which eventually arrives in rewrite.py/url_out(...) which does this if not scheme or scheme is True: scheme = request.env.get('wsgi_url_scheme', 'http').lower() \ if request else 'http' so I guess there is no key wsgi_url_scheme I do this in db.py so the user is guaranteed to be on an https site. (This server is Windows IIS 8 ) request.requires_https() -- 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.