X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fauth.c;h=f7a35c780bd87761034a878a375ee14acccc3f42;hb=aa62201ed9018fa6150ebc69213a6c9e4afadb9e;hp=0a64641a24114e4cbb1fc9064776bb6de0b9b9da;hpb=60f6975f9df4e1bece0140ccfc082f6d250ca106;p=citadel.git diff --git a/webcit/auth.c b/webcit/auth.c index 0a64641a2..f7a35c780 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -463,27 +463,17 @@ void display_changepw(void) { char buf[SIZ]; - output_headers(1, 1, 2, 0, 0, 0); - wprintf("
\n"); - wprintf("

"); - wprintf(_("Change your password")); - wprintf("

"); - wprintf("
"); + output_headers(1, 1, 1, 0, 0, 0); - wprintf("
\n"); + svprintf("BOXTITLE", WCS_STRING, _("Change your password")); + do_template("beginbox"); if (!IsEmptyStr(WC->ImportantMessage)) { - do_template("beginbox_nt"); - wprintf("" - "%s
\n", WC->ImportantMessage); - do_template("endbox"); + wprintf("" + "%s
\n", WC->ImportantMessage); safestrncpy(WC->ImportantMessage, "", sizeof WC->ImportantMessage); } - wprintf("
" - "
\n"); - - wprintf("

"); serv_puts("MESG changepw"); serv_getln(buf, sizeof buf); if (buf[0] == '1') { @@ -492,24 +482,25 @@ void display_changepw(void) wprintf("
\n"); wprintf("\n", WC->nonce); - wprintf("
" - "" - "
"); + wprintf("\n"); - wprintf("\n"); - wprintf("\n"); + wprintf("\n"); - wprintf("\n"); + wprintf("\n"); + wprintf("
"); wprintf(_("Enter new password:")); - wprintf("
"); + wprintf(""); + wprintf("
"); wprintf(_("Enter it again to confirm:")); - wprintf("
"); + wprintf("
\n"); - wprintf("

\n"); - wprintf("", _("Change password")); + wprintf("
\n"); + wprintf("", _("Change password")); wprintf(" "); - wprintf("\n", _("Cancel")); - wprintf("
\n"); - wprintf("
\n"); + wprintf("\n", _("Cancel")); + wprintf("
\n"); + wprintf("\n"); + + do_template("endbox"); wDumpContent(1); }