X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fopenid.c;h=8842e88102549f3f214d7d480a58a05a2417c917;hb=74ed588f96bdfc2292b03f9b20e569ba8cd971bb;hp=e58382d42d238c049e59c0599bb91cc38ef6d16d;hpb=6890b64dae56f05982f83218da6478d6d302fa8e;p=citadel.git diff --git a/webcit/openid.c b/webcit/openid.c index e58382d42..8842e8810 100644 --- a/webcit/openid.c +++ b/webcit/openid.c @@ -66,15 +66,14 @@ void openid_attach(void) { char buf[4096]; if (havebstr("attach_button")) { - wcsession *WCC = WC; lprintf(CTDL_DEBUG, "Attempting to attach %s\n", bstr("openid_url")); snprintf(buf, sizeof buf, - "OIDS %s|%s://%s/finalize_openid_login|%s://%s", - bstr("openid_url"), - (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->HR.http_host), - (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->HR.http_host) + "OIDS %s|%s/finalize_openid_login|%s", + bstr("openid_url"), + ChrPtr(site_prefix), + ChrPtr(site_prefix) ); serv_puts(buf);