From e2b2f374d02605ac7ad7e30c05ce9369c4d7a961 Mon Sep 17 00:00:00 2001
From: Olgun Cengiz <olgun.cengiz@vereign.com>
Date: Fri, 1 Feb 2019 13:39:07 +0300
Subject: [PATCH] removed console.log lines

---
 javascript/src/iframe/viamapi-iframe.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/javascript/src/iframe/viamapi-iframe.js b/javascript/src/iframe/viamapi-iframe.js
index 1c0ede6..b5daa40 100644
--- a/javascript/src/iframe/viamapi-iframe.js
+++ b/javascript/src/iframe/viamapi-iframe.js
@@ -575,7 +575,6 @@ function getCurrentTime() {
 
 function getTimeLeftInLocalStorage() {
   const blockFinishTime = getBlockFinishTimeInLocalStorage();
-  console.log("blockFinishTime:", blockFinishTime);
   const timeNow = getCurrentTime();
   const seconds = (blockFinishTime - timeNow) % 60;
   let minutes = Math.floor((blockFinishTime - timeNow) / 60);
@@ -597,17 +596,15 @@ function failPincodeAttempt(password) {
       }
       message = "9 failed attempts. Identity is revoked!";
       localStorage.removeItem("attempt");
-      console.log("identity is revoked!");
     } else if (attempt % 3 === 0) {
       const timeNow = getCurrentTime();
-      const blockFinishTime = timeNow + 10;
+      const blockFinishTime = timeNow + 300;
       localStorage.setItem("blockFinishTime", blockFinishTime);
       localStorage.setItem("attempt", attempt + 1);
       message = "3 failed attempts. Identity is blocked!";
     } else {
       localStorage.setItem("attempt", attempt + 1);
     }
-    console.log("Total Attempts:", attempt);
   }
   throw(message);
 }
-- 
GitLab