D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
adms
/
Controllers
/
Filename :
EsqueceuSenha.php
back
Copy
<?php namespace App\adms\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of EsqueceuSenha * * @copyright (c) year, Cesar Szpak - Celke */ class EsqueceuSenha { private $Dados; public function esqueceuSenha() { $this->Dados = filter_input_array(INPUT_POST, FILTER_DEFAULT); // echo 'linha 24 con'; // echo '<pre>'; // var_dump( $this->Dados ); // echo '</pre>'; if (!empty($this->Dados['RecupUserLogin'])) { $esqSenha = new \App\adms\Models\AdmsEsqueceuSenha(); $esqSenha->esqueceuSenha($this->Dados); if ($esqSenha->getResultado()) { $UrlDestino = URLADM . 'login/acesso'; header("Location: $UrlDestino"); } else { $this->Dados['form'] = $this->Dados; $carregarView = new \Core\ConfigView("adms/Views/login/esqueceuSenha", $this->Dados); $carregarView->renderizarLogin(); } } else { $carregarView = new \Core\ConfigView("adms/Views/login/esqueceuSenha", $this->Dados); $carregarView->renderizarLogin(); } } }