man kann hunde anlegen yay
All checks were successful
Build and push / Pulling repo on server (push) Successful in 18s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 18s
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user