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 81cdae85b0 - Show all commits

25
User.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once("BancaDati/BancaDati.php");
use BancaDati\BancaDati;
class User {
public string $username;
public string $email;
public string $token;
private string $password;
private BancaDati $db;
public function __construct(string $username) {
$this->username = $username;
$db = new BancaDati();
return $this;
}
public function exists() {
return true;
}
public function login(string $password) : string {
// select user
// $this->db->select()
return "token";
}
}