auth.messages.verify_email

15 views
Skip to first unread message

Jonathan Lundell

unread,
Jul 10, 2009, 9:04:58 PM7/10/09
to web...@googlegroups.com
Is there a standard way to get the current server name for the
verification string?

mdipierro

unread,
Jul 10, 2009, 9:13:18 PM7/10/09
to web2py Web Framework
No, web2py cannot determine it.

Massimo

Jonathan Lundell

unread,
Jul 11, 2009, 3:40:38 PM7/11/09
to web...@googlegroups.com
On Jul 10, 2009, at 6:13 PM, mdipierro wrote:

>
> No, web2py cannot determine it.

It's not HTTP_HOST?

mdipierro

unread,
Jul 11, 2009, 4:22:48 PM7/11/09
to web2py Web Framework
http_host is the same as server name. It does not say is whether it is
http/https and what the port is. Plus web2py may be behind a proxy.
there is no reliable way to determine the url and any technique you
use can be spoofed by visitors.

it is must easier to declare it.

request/my_url='https://mydomain.com:80'
Reply all
Reply to author
Forward
0 new messages