* Added an extra logging message to try to figure out the problem of users being...
authorArt Cancro <ajc@citadel.org>
Thu, 11 Jun 2009 21:36:01 +0000 (21:36 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 11 Jun 2009 21:36:01 +0000 (21:36 +0000)
webcit/auth.c

index f9336fd8443684b1d20f00796754bbef161440b1..3913a103213463c45d4a4ed4e6789a77853dabb6 100644 (file)
@@ -173,8 +173,6 @@ void do_login(void)
        wcsession *WCC = WC;
        StrBuf *Buf;
 
-       lprintf(9, "SELECTED LANGUAGE: '%s'\n", bstr("language"));
-
        if (havebstr("language")) {
                set_selected_language(bstr("language"));
                go_selected_language();
@@ -514,8 +512,10 @@ void do_welcome(void)
        if (ChrPtr(Buf)[0] == '/') {
                StrBufCutLeft(Buf, 1);
        }
-       if (StrLength(Buf) == 0)
+       if (StrLength(Buf) == 0) {
                StrBufAppendBufPlain(Buf, "dotgoto?room=_BASEROOM_", -1, 0);
+       }
+       lprintf(9, "Redirecting to user's start page: %s\n", ChrPtr(Buf));
        http_redirect(ChrPtr(Buf));
 }