Ejemplo n.º 1
0
<?php

require __DIR__ . "/../class.logsys.php";
$config = array("basic" => array("company" => "My Site", "email" => "*****@*****.**"), "db" => array("host" => "localhost", "port" => 3306, "username" => "root", "password" => "backstreetboys", "name" => "test", "table" => "users"), "features" => array("auto_init" => true, "two_step_login" => true), "pages" => array("no_login" => array("/Francium/logSys/example-two-step-login/", "/Francium/logSys/example-two-step-login/reset.php", "/Francium/logSys/example-two-step-login/register.php"), "login_page" => "/Francium/logSys/example-two-step-login/login.php", "home_page" => "/Francium/logSys/example-two-step-login/home.php"), "two_step_login" => array("instruction" => "A token was sent to your E-Mail Address. Please see the mail in your inbox and paste the token found in the textbox below :", "send_callback" => function ($userID, $token) {
    $email = \Fr\LS::getUser("email", $userID);
    \Fr\LS::sendMail($email, "Verify Yourself", "Someone tried to login to your account. If it was you, then use the following token to complete logging in : <blockquote>" . $token . "</blockquote>If it was not you, then ignore this email and please consider to change your account's password.");
}));
\Fr\LS::config($config);