man kann hunde anlegen yay
All checks were successful
Build and push / Pulling repo on server (push) Successful in 18s

This commit is contained in:
2023-10-22 23:05:24 +02:00
parent 890905b435
commit f7a7c3457b
19 changed files with 314 additions and 83 deletions

View File

@ -15,7 +15,6 @@ class Register extends Page {
$hash = password_hash($password, PASSWORD_DEFAULT);
$u = new User();
$err = false;
@ -35,8 +34,8 @@ class Register extends Page {
if($err)
{
$this->set('template', '/templates/partials/error.html');
$this->set('title', 'Error');
$this->set('message', $err);
$this->set('errorTitle', 'Error');
$this->set('errorMessage', $err);
return;
}
else
@ -52,22 +51,22 @@ class Register extends Page {
catch(Exception $e)
{
$this->set('template', '/templates/partials/error.html');
$this->set('title', 'Error');
$this->set('message', $e->getMessage());
$this->set('errorTitle', 'Error');
$this->set('errorMessage', $e->getMessage());
return;
}
//$this->redirect('/register/success');
return;
}
return print_r(['email'=>$email,'password'=>$password,'password2'=>$password2], true);
//return print_r(['email'=>$email,'password'=>$password,'password2'=>$password2], true);
}
function success()
{
$this->set('template', '/templates/partials/success.html');
$this->set('title', 'Success');
$this->set('message', 'You have successfully registered. Activate your account from the Link in your email');
$this->set('successTitle', 'Success');
$this->set('successMessage', 'You have successfully registered. Activate your account from the Link in your email');
}
function test()