]> code.citadel.org Git - citadel.git/commitdiff
Added support for new user login (still need to handle registration).
authorArt Cancro <ajc@citadel.org>
Wed, 9 Dec 1998 20:08:44 +0000 (20:08 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 9 Dec 1998 20:08:44 +0000 (20:08 +0000)
webcit/ChangeLog
webcit/auth.c
webcit/child.h
webcit/static/frameset.html

index 2e8e7c7c149bf91bc4d3f5567c63bf9a05069c88..3189b66c55682ac9f0c6ff40c3043d0d25006238 100644 (file)
@@ -3,7 +3,8 @@
 
 Wed Dec  9 11:13:48 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Smoothed out some of the login/logout code.  Failed authentication
-         now works the way it should.  New user login not yet supported.
+         now works the way it should.
+       * Added support for new user login (still need to handle registration).
 
 Tue Dec  8 15:45:42 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Discovered that the HTTP socket problem is related to a socket that
index c5820d53a3d8a4566057eaad76c2d69a439318e8..800337331973d5ee3399f139966d823b38bce291 100644 (file)
@@ -109,8 +109,17 @@ void do_login(void) {
                }
 
        if (!strcasecmp(bstr("action"), "New User")) {
-               display_login("New user login not yet supported.");
-               return;
+               serv_printf("NEWU %s", bstr("name"));
+               serv_gets(buf);
+               if (buf[0]=='2') {
+                       become_logged_in(bstr("name"), bstr("pass"), buf);
+                       serv_printf("SETP %s", bstr("pass"));
+                       serv_gets(buf);
+                       }
+               else {
+                       display_login(&buf[4]);
+                       return;
+                       }
                }
 
        if (logged_in) {
@@ -129,7 +138,14 @@ void do_welcome(void) {
        wprintf("<CENTER><H1>");
        escputs(wc_username);
        wprintf("</H1>\n");
-       /* other stuff here */
+       /* FIX add user stats here */
+
+       wprintf("<HR>");
+       /* FIX  ---  what should we put here?  the main menu,
+        * or new messages in the lobby?
+        */
+       embed_main_menu();
+
        wprintf("</BODY></HTML>\n");
        wDumpContent();
        }
index 06eea33197b0ccd5f541e7ae7512f776f042f5aa..ac41cca4985b804ad82c4c894c7701dab5f46784 100644 (file)
@@ -37,3 +37,4 @@ void url(char *buf);
 void escputs1(char *strbuf, int nbsp);
 long extract_long(char *source, long int parmnum);
 void dump_vars(void);
+void embed_main_menu(void);
index caa686714e634ded78462c7ecb2e0031f7412a48..a64c0ce8a7f160b96eead24baa3f93d66e0a6afa 100644 (file)
@@ -6,7 +6,7 @@
                <FRAME name="left" src="/static/menubar.html">
                <FRAMESET rows="15%, 80%">
                        <FRAME name="top" src="/dotgoto?room=_BASEROOM_">
-                       <FRAME name="bottom" src="/display_main_menu">
+                       <FRAME name="bottom" src="/do_welcome">
                </FRAMESET>
                <NOFRAMES>
                        Your browser doesn't support frames.<BR>