--- trunk/tntnet/dynamic/login.ecpp 2007/11/29 07:34:54 93 +++ trunk/tntnet/dynamic/login.ecpp 2007/11/29 08:04:13 94 @@ -31,14 +31,11 @@ <{ -tntdb::Connection conn; - -conn = tntdb::connect(dburl); //letting exceptions flow up and to tntnet and let it display an error message +tntdb::Connection conn = tntdb::connect(dburl); std::string post_username = qparam.param("username"); std::string post_password = qparam.param("password"); -bool showForm = true; if (post_username.size() > 0 || post_password.size() > 0) @@ -54,7 +51,9 @@ tntdb::Row row = res[0]; userName = post_username; isAdmin = row.getBool(1); - reply.setHeader("Refresh", "0; url=/dynamic/index"); + + reply.setHeader("Location", "index"); + return HTTP_MOVED_TEMPORARILY; //code 302 } else { @@ -65,9 +64,6 @@ -<{ -if (showForm) { -}>
@@ -85,9 +81,6 @@
-<{ -} // end if (showForm) -}> <&footer>