diff --git a/views/header.php b/views/header.php index 87b314f..9c2638a 100644 --- a/views/header.php +++ b/views/header.php @@ -24,7 +24,7 @@ if (isset($UserClass)) { $sell_list[] = $OrderClass->get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell } -$fullName = isset($_SESSION['full_name']) ? $_SESSION['full_name'] : ""; +$fullName = isset($_SESSION['user_name']) ? $_SESSION['user_name'] : ""; $user_logged_in = false; $action_class_market = 'flo_log_in'; $action_class_buy_sell = 'flo_log_in'; @@ -141,10 +141,14 @@ function ajax_authentication(floID,floPubKey,message,signDataWithFlo) { if(IS_JSON) { if(d.error == false) { - document.getElementById("to_login_fields").style.display = "none"; - document.getElementById("to_logout_fields").style.display = "block"; + document.getElementById("loginMessage").style.color = "#383838"; + document.getElementById("loginMessage").innerHTML = "Successful Login. Reloading Page"; + var delayInMilliseconds = 500; + + setTimeout(function() {window.location.reload();}, delayInMilliseconds); - } else { + + } else { document.getElementById("loginMessage").innerHTML = d.message; document.getElementById("loginMessage").style.color = "red"; } @@ -190,13 +194,17 @@ function ajax_authentication(floID,floPubKey,message,signDataWithFlo) {
Last Traded Price:
+ -
+

-
Token Balance: loading...
-
Cash Balance: $ loading...
+
+
Token Balance: loading...
+
Cash Balance: $ loading...
- + + +