]> code.citadel.org Git - citadel.git/blobdiff - webcit/auth.c
* Removed some cruft from the login code. Combined the
[citadel.git] / webcit / auth.c
index 553e9af30937a051a5f77075eae9e6ec86624078..1eed0591759c0475568abb3d3293b87f2285e55f 100644 (file)
@@ -220,8 +220,7 @@ void do_login(void)
                        serv_printf("PASS %s", bstr("pass"));
                        serv_getln(buf, sizeof buf);
                        if (buf[0] == '2') {
-                               become_logged_in(bstr("name"),
-                                                bstr("pass"), buf);
+                               become_logged_in(bstr("name"), bstr("pass"), buf);
                        } else {
                                display_login(&buf[4]);
                                return;
@@ -352,7 +351,7 @@ void finalize_openid_login(void)
                                                else if (linecount == 2) {
                                                        safestrncpy(password, buf, sizeof password);
                                                }
-                                               else if (linecount == 2) {
+                                               else if (linecount == 3) {
                                                        safestrncpy(logged_in_response, buf,
                                                                sizeof logged_in_response);
                                                }