[icinga-checkins] icinga.org: icinga-web/r1.8: Removed command auth timeout

git at icinga.org git at icinga.org
Mon Jan 14 11:15:14 CET 2013


Module: icinga-web
Branch: r1.8
Commit: 50a9ead668d9dd661bfb71df5082c719cf11747f
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=50a9ead668d9dd661bfb71df5082c719cf11747f

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Wed Dec 19 13:13:33 2012 +0100

Removed command auth timeout

---

 .../models/System/CommandSenderModel.class.php     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/models/System/CommandSenderModel.class.php b/app/modules/Cronks/models/System/CommandSenderModel.class.php
index 9495cfd..6d1d520 100644
--- a/app/modules/Cronks/models/System/CommandSenderModel.class.php
+++ b/app/modules/Cronks/models/System/CommandSenderModel.class.php
@@ -91,8 +91,8 @@ class Cronks_System_CommandSenderModel extends CronksBaseModel {
      * @return string
      */
     public function genTimeKey() {
-        $data = strftime('%Y-%d-%H-').(date('i') - (date('i') % self::TIME_VALID));
-        $data .= '-'. $this->getContext()->getUser()->getNsmUser()->user_id;
+        //$data = strftime('%Y-%d-%H-').(date('i') - (date('i') % self::TIME_VALID));
+        $data = '-'. $this->getContext()->getUser()->getNsmUser()->user_id;
         $data .= '-'. session_id();
 
         return hash_hmac(self::TIME_ALGO, $data, self::TIME_KEY);





More information about the icinga-checkins mailing list