Login #1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user