25 lines
571 B
PHP
25 lines
571 B
PHP
<?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";
|
|
}
|
|
} |