diff --git a/index.php b/index.php index fbe2500..c913f1f 100644 --- a/index.php +++ b/index.php @@ -40,7 +40,6 @@ $app->post("/login", function( array $req, Response $res) use ($db) { $username = $req["body"]["username"]; $password = $req["body"]["password"]; - $user = $db->select("utente", ["nomeUtente" => $username]); $user = new User(); $usertoken = $user->loginWithUsername($username, $password);