From 81cdae85b06d5f2a5904460dc70e3a9b5a9af40b Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Wed, 11 Jan 2023 14:41:09 +0100 Subject: [PATCH] add: user --- User.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 User.php diff --git a/User.php b/User.php new file mode 100644 index 0000000..0f61993 --- /dev/null +++ b/User.php @@ -0,0 +1,25 @@ +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"; + } +} \ No newline at end of file