* Corrected strbuf errors in auth.c, this appears to fix openID login but we need...
authorArt Cancro <ajc@citadel.org>
Sat, 31 Jan 2009 21:44:57 +0000 (21:44 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 31 Jan 2009 21:44:57 +0000 (21:44 +0000)
webcit/auth.c

index 5283afa1824e171d6da09f2520c8a8aa1d2e9caf..c938851b103f9b05cdde271c6caf209f85dfa37e 100644 (file)
@@ -352,9 +352,7 @@ void finalize_openid_login(void)
        StrBuf *logged_in_response = NULL;
        StrBuf *claimed_id = NULL;
 
-       lprintf(9, "finalize_openid_login() started\n");
        if (havebstr("openid.mode")) {
-               lprintf(9, "finalize_openid_login() openid.mode = %s\n", bstr("openid.mode"));
                if (!strcasecmp(bstr("openid.mode"), "id_res")) {
                        Buf = NewStrBuf();
                        serv_puts("OIDF");
@@ -377,9 +375,7 @@ void finalize_openid_login(void)
                                serv_puts("000");
 
                                linecount = 0;
-                               while (StrBuf_ServGetln(Buf), 
-                                      (StrLength(Buf)==3) && 
-                                      !strcmp(ChrPtr(Buf), "000")) 
+                               while (StrBuf_ServGetln(Buf), strcmp(ChrPtr(Buf), "000")) 
                                {
                                        if (linecount == 0) result = NewStrBufDup(Buf);
                                        if (!strcasecmp(ChrPtr(result), "authenticate")) {
@@ -423,7 +419,6 @@ void finalize_openid_login(void)
         * auto-creating one using Simple Registration Extension, we're already on our way.
         */
        if (!strcasecmp(ChrPtr(result), "authenticate")) {
-               lprintf(9, "finalize_openid_login() attempting to become_logged_in()\n");
                become_logged_in(username, password, logged_in_response);
        }