DirektiveDesDons/User.php
Johannes Kantz 81cdae85b0 add: user
2023-01-11 14:45:18 +01:00

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";
}
}