From 6ea17b4febe76af609921cb4bd8b3dc894896424 Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Mon, 18 May 2020 03:03:14 -0700 Subject: [PATCH] remove debug code for sudo --- app/dashboard/views/enter_sudo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/dashboard/views/enter_sudo.py b/app/dashboard/views/enter_sudo.py index 4cbfe25e..da58474f 100644 --- a/app/dashboard/views/enter_sudo.py +++ b/app/dashboard/views/enter_sudo.py @@ -45,8 +45,9 @@ def enter_sudo(): def sudo_required(f): @wraps(f) def wrap(*args, **kwargs): - # Reset sudo mode in every 20s under dev mode - SUDO_GAP = 900 if not DEBUG else 20 + # Reset sudo mode in every 60s under dev mode + # SUDO_GAP = 900 if not DEBUG else 60 + SUDO_GAP = 900 if ( "sudo_time" not in session or (time() - int(session["sudo_time"])) > SUDO_GAP