4 * This file contains code which relates to authentication of users to Citadel.
18 * This function needs to get called whenever a PASS or NEWU succeeds
20 void become_logged_in(char *user, char *pass, char *serv_response) {
23 strcpy(wc_username, user);
24 strcpy(wc_password, pass);
32 if (!strcasecmp(bstr("action"), "Login")) {
33 serv_printf("USER %s", bstr("name"));
36 serv_printf("PASS %s", bstr("pass"));
39 become_logged_in(bstr("name"), bstr("pass"), buf);
45 output_static("frameset.html");
48 printf("HTTP/1.0 200 OK\n");
50 wprintf("<HTML><HEAD><TITLE>Nope</TITLE></HEAD><BODY>\n");
51 wprintf("Your password was not accepted.\n");
52 wprintf("<HR><A HREF=\"/\">Try again</A>\n");
53 wprintf("</BODY></HTML>\n");