Login #1

Merged
PBS2H21ASH merged 15 commits from feat/login into don 2023-01-18 08:40:26 +01:00
Showing only changes of commit fe5efbe8f1 - Show all commits

View File

@ -40,7 +40,6 @@ $app->post("/login", function( array $req, Response $res) use ($db) {
$username = $req["body"]["username"]; $username = $req["body"]["username"];
$password = $req["body"]["password"]; $password = $req["body"]["password"];
$user = $db->select("utente", ["nomeUtente" => $username]);
$user = new User(); $user = new User();
$usertoken = $user->loginWithUsername($username, $password); $usertoken = $user->loginWithUsername($username, $password);