]> code.citadel.org Git - citadel.git/blobdiff - webcit/auth.c
* auth.c: shrink the margins on the login screen so the user sees something
[citadel.git] / webcit / auth.c
index 9c57a6e67681aec371ea67cf2bf5d1b98e60ee3e..a837c275f4e6884b2eeec9d2aaff8fcdbf0c1855 100644 (file)
@@ -47,7 +47,7 @@ void display_login(char *mesg)
 
        output_headers(1, 1, 2, 0, 0, 0, 0);
        //wprintf("<div id=\"content\">\n");
-       wprintf("<div>\n");
+       wprintf("<div style=\"position:absolute; top:20px; left:20px; right:20px\">\n");
 
        if (mesg != NULL) if (strlen(mesg) > 0) {
                stresc(buf, mesg, 0, 0);
@@ -249,7 +249,8 @@ void validate(void)
                return;
        }
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div id=\"fix_scrollbar_bug\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
        wprintf("<center>");
 
        strcpy(user, &buf[4]);
@@ -295,7 +296,7 @@ void validate(void)
        wprintf("<br />\n");
 
        wprintf("</CENTER>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
@@ -358,7 +359,8 @@ void display_changepw(void)
                strcpy(WC->ImportantMessage, "");
        }
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<div id=\"fix_scrollbar_bug\">"
+               "<table border=0 width=100%% bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<CENTER><br />");
        serv_puts("MESG changepw");
@@ -367,7 +369,7 @@ void display_changepw(void)
                fmout(NULL, "CENTER");
        }
 
-       wprintf("<form name=\"changepwform\" action=\"changepw\" method=\"post\" onLoad=\"document.changepwform.action.disabled = true\">\n");
+       wprintf("<form name=\"changepwform\" action=\"changepw\" method=\"post\">\n");
        wprintf("<CENTER>"
                "<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\" "
                "BGCOLOR=\"#EEEEEE\">"
@@ -381,7 +383,7 @@ void display_changepw(void)
                "&nbsp;"
                "<INPUT type=\"submit\" name=\"action\" value=\"Cancel\">\n");
        wprintf("</form></center>\n");
-       wprintf("</td></tr></table></center>\n");
+       wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
 }
 
@@ -421,6 +423,7 @@ void changepw(void)
        serv_gets(buf);
        sprintf(WC->ImportantMessage, "%s", &buf[4]);
        if (buf[0] == '2') {
+               safestrncpy(WC->wc_password, buf, sizeof WC->wc_password);
                display_main_menu();
        }
        else {