|
|
@ -65,14 +65,17 @@ if (isset($_POST) && $_POST) { |
|
|
|
|
|
|
|
|
|
|
|
if ($_twister->importWallet($userName, $userPrivateKey)) { |
|
|
|
if ($_twister->importWallet($userName, $userPrivateKey)) { |
|
|
|
|
|
|
|
|
|
|
|
// @TODO |
|
|
|
// @TODO: add login time |
|
|
|
|
|
|
|
|
|
|
|
// Auth |
|
|
|
// Auth |
|
|
|
if (!session_id()) { |
|
|
|
if (session_id()) { |
|
|
|
|
|
|
|
session_destroy(); |
|
|
|
$_SESSION['username'] = $userName; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
session_start(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$_SESSION['username'] = $userName; |
|
|
|
|
|
|
|
|
|
|
|
// Redirect |
|
|
|
// Redirect |
|
|
|
header('Location: ' . PROJECT_HOST, true, 302); |
|
|
|
header('Location: ' . PROJECT_HOST, true, 302); |
|
|
|
|
|
|
|
|
|
|
|