diff --git a/src/Factory.php b/src/Factory.php index 07df3d7..2670cd3 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -46,7 +46,13 @@ class Factory public function userManagement(mixed $userIndex): UserManagement { - return new UserManagement($this->db, $this->request, $this->csrf, $this->session, $userIndex); + return new UserManagement( + $this->db, $this->request, + $this->csrf, + $this->session, + $userIndex, + $this->hash + ); } public function authenticate(mixed $userIndex): ?Authenticate @@ -54,7 +60,14 @@ class Factory if(\is_null($this->db->getSecret($userIndex))) return null; else - return new Authenticate($this->db, $this->request, $this->csrf, $this->session, $userIndex); + return new Authenticate( + $this->db, + $this->request, + $this->csrf, + $this->session, + $userIndex, + $this->hash + ); } }