X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fopenid.c;h=ae037e851c6eb688766d9d0b59ce27e7fc12d096;hb=3f1b85695cf9338d2b5f7fc7f9f8afedcb9d608c;hp=e34425832036b55850cdac5c699bf412ded8e323;hpb=511ff6f7d545fd30b1be55180886245b127791b6;p=citadel.git diff --git a/webcit/openid.c b/webcit/openid.c index e34425832..ae037e851 100644 --- a/webcit/openid.c +++ b/webcit/openid.c @@ -20,32 +20,40 @@ void display_openids(void) svput("BOXTITLE", WCS_STRING, _("Manage Account/OpenID Associations")); do_template("beginbox"); - wprintf(""); - - serv_puts("OIDL"); - serv_getln(buf, sizeof buf); - if (buf[0] == '1') while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { - bg = 1 - bg; - wprintf("", (bg ? "even" : "odd")); - wprintf("\n"); + if (serv_info.serv_supports_openid) { + + wprintf("
"); - escputs(buf); - wprintf(""); - wprintf("", - _("Do you really want to delete this OpenID?")); - wprintf("%s", _("(delete)")); - wprintf("
"); + + serv_puts("OIDL"); + serv_getln(buf, sizeof buf); + if (buf[0] == '1') while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { + bg = 1 - bg; + wprintf("", (bg ? "even" : "odd")); + wprintf("\n"); + } + + wprintf("
"); + escputs(buf); + wprintf(""); + wprintf("", + _("Do you really want to delete this OpenID?")); + wprintf("%s", _("(delete)")); + wprintf("

\n"); + + wprintf("
\n"); + wprintf("\n", WC->nonce); + wprintf(_("Add an OpenID: ")); + wprintf("\n"); + wprintf("" + "
\n", _("Attach")); } - wprintf("
\n"); + else { + wprintf(_("%s does not permit authentication via OpenID."), serv_info.serv_humannode); + } - wprintf("
\n"); - wprintf("\n", WC->nonce); - wprintf(_("Add an OpenID: ")); - wprintf("\n"); - wprintf("" - "
\n", _("Attach")); do_template("endbox"); wprintf(""); wDumpContent(2);