Erstellung des Benutzerregistrierungssystem

This commit is contained in:
2025-06-18 10:50:44 +02:00
parent 114f8ead52
commit 711b928fa5
7 changed files with 42 additions and 17 deletions

View File

@@ -9,7 +9,6 @@ class UserController{
private $db;
private $validData = array();
private $errors = array();
private $labels = array("name" => "Name", "lastname"=> "Nachname", "email" => "E-Mail-Adresse", "password" => "Password", "role" => "Role");
public function __construct($view){
$this->db = new UserModel();
@@ -24,9 +23,17 @@ class UserController{
}
public function showUserLoginForm(){
}
public function register(){
$this->db->createUser($this->labels);
$this->db->createUser($_POST);
$this->view->setDoMethodName("showUserConfirmation");
$this->showUserConfirmation();
}
public function login(){
}
}