public function register() { $postdata = array('username' => $username = filter_var($_POST['username'], FILTER_SANITIZE_EMAIL), 'password' => $password = PASSWORD::hash($_POST['password'], FILTER_SANITIZE_STRING)); $this->_model->regDb($postdata); $this->_view->render('header', $data); $this->_view->render('products/login', $data); $this->_view->render('footer'); }
public function senha($id, $password, $cliente) { include "../../plugins/Password/PASSWORD.php"; $this->control = new Aluno(); $this->control->PASSAluno($id, PASSWORD::hash($password), $cliente); }
public function passCliente($idcliente, $senha) { include "../../plugins/Password/PASSWORD.php"; $this->control = new Cliente(); $this->control->Password($id_estabelecimento, PASSWORD::hash($senha)); }