Created
November 26, 2010 17:47
-
-
Save gustavofonseca/717006 to your computer and use it in GitHub Desktop.
Exemplo de uso da API de autenticação da Plataforma de Serviços da BVS
This file contains hidden or 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
$result = Authentication::loginUser($_REQUEST["userID"],$_REQUEST["userPass"]); | |
if (($result["status"] !== false) and ($result !== false)){ | |
$_SESSION["userTK"] = $result["userTK"]; // Token de autenticação | |
$_SESSION["userFirstName"] = $result["userFirstName"]; // Primeiro nome | |
$_SESSION["userLastName"] = $result["userLastName"]; // Ultimo nome | |
$_SESSION["userMail"] = $result["userMail"]; // Email | |
$response["status"] = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment