public function register($post) {
		$token = $this->createToken();
		}
		$params = [
			'id' => null,
			'email' => $post['email'],
			'login' => $post['login'],
			'password' => password_hash($post['password'], PASSWORD_BCRYPT),
			'token' => $token,
			'status' => 0,
		];
		$this->db->query('INSERT INTO accounts VALUES (:id, :email, :login, :password, :token, :status)', $params);
		mail($post['email'], 'Register', 'Confirm: '.$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/account/confirm/'.$token);
	}public function confirmAction() {
		if (!$this->model->checkTokenExists($this->route['token'])) {
			$this->view->redirect('account/login');
		}
		$this->model->activate($this->route['token']);
		$this->view->render('Аккаунт активирован');
	}
Сам в этом не разбираюсь почти, делаю по видяшкам, видать они устарели из за этого ошибки были
wisgest, пишу на php, используя phpmailer и smtp, что то лишнее написал?