Last active
December 16, 2015 12:49
-
-
Save TiuTalk/5437434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Inclui nossa classe com os métodos de segurança | |
require_once "Seguranca.php"; | |
// Dados vindos do formulário | |
$usuario = $_POST['usuario']; | |
$senha = $_POST['senha']; | |
// Autentica o usuário | |
if ($Seguranca->login($usuario, $senha)) { | |
// Redireciona pra página interna | |
header('Location: interna.php'); exit; | |
} else { | |
$Seguranca->logout(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment