diff --git a/inc/bootstrap.php b/inc/bootstrap.php index 54f88c6..9a134ea 100644 --- a/inc/bootstrap.php +++ b/inc/bootstrap.php @@ -44,6 +44,7 @@ if(CUser::is_user()) { $USER = CCache::getCache($cacheId); } else { $USER = CUser::getFields(); + unset($USER['password']); CCache::writeCache($cacheId, $USER); } diff --git a/inc/header.php b/inc/header.php index ff495ec..f463beb 100644 --- a/inc/header.php +++ b/inc/header.php @@ -43,6 +43,7 @@ if(!CUser::is_user() and $_SERVER['REQUEST_URI'] !== '/login.php') { 'userLogin': '', 'date': '', }; + var arrUser =