styles für register- und loginform hinzugefügt

This commit is contained in:
2025-07-02 10:57:26 +02:00
parent e7b3a062b7
commit 430d1b38c0
7 changed files with 110 additions and 67 deletions

View File

@@ -87,17 +87,19 @@ class UserController{
public function showUserLoginConfirmation(){
$userId = $this->getCurrentUserId();
$user = null;
var_dump($user . "user");
if($userId){
$user = $this->db->getUserById($userId);
}
include 'Views/User/showUserLoginConfirmation.phtml';
$path = "Views/User/showUserLoginConfirmation.phtml";
if(file_exists($path)){
include $path;
}
}
public function register(){
$this->db->createUser($_POST);
$this->view->setDoMethodName("showUserRegisterConfirmation");
$this->showUserRegisterConfirmation();
$this->login();
}
public function login(){