initial code commit

This commit is contained in:
2024-02-09 20:52:11 -06:00
parent f5d267ea98
commit 532df6b9be
18 changed files with 583 additions and 1 deletions

20
Model/User.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
namespace Hpz937\BillReminder\Model;
class User {
public int $id;
public string $username;
private string $passwordHash;
public function __construct(int $id, string $username, string $passwordHash) {
$this->id = $id;
$this->username = $username;
$this->passwordHash = $passwordHash;
}
// Add methods for password verification, etc.
public function verifyPassword(string $password): bool {
return password_verify($password, $this->passwordHash);
}
}