X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fauth.c;h=505d8ccb852fe6faf17e8850e959ee5c6e9b85ff;hb=8c7819e29bd976ec4882075f12480c12dc3691bd;hp=0a64641a24114e4cbb1fc9064776bb6de0b9b9da;hpb=0f72e15a12dcc90e3dbfc01ff35c0e910a8d419e;p=citadel.git diff --git a/webcit/auth.c b/webcit/auth.c index 0a64641a2..505d8ccb8 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -44,8 +44,8 @@ void display_login(char *mesg) wprintf("
\n"); if (mesg != NULL) if (!IsEmptyStr(mesg)) { - stresc(buf, mesg, 0, 0); - svprintf("mesg", WCS_STRING, "%s", buf); + stresc(buf, SIZ, mesg, 0, 0); + svprintf("mesg", WCS_STRING, "%s", buf); } svprintf("LOGIN_INSTRUCTIONS", WCS_STRING, @@ -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); }