From 1fdee845d5028b84239e8551f42fc1a69e89a536 Mon Sep 17 00:00:00 2001 From: Enclavet <andrewkl@enclavenet.com> Date: Sat, 12 Sep 2015 15:43:22 -0400 Subject: [PATCH] Enigma: fix storing password for whole session --- plugins/enigma/lib/enigma_engine.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/enigma/lib/enigma_engine.php b/plugins/enigma/lib/enigma_engine.php index e2dbd9d..b79e995 100644 --- a/plugins/enigma/lib/enigma_engine.php +++ b/plugins/enigma/lib/enigma_engine.php @@ -1075,8 +1075,10 @@ $config = $this->rc->decrypt($config); $config = @unserialize($config); } - - $threshold = time() - $this->password_time; + + if($this->password_time) { + $threshold = time() - $this->password_time; + } $keys = array(); // delete expired passwords -- Gitblit v1.9.1