diff --git a/app/assets/javascripts/timeoutPopup.js b/app/assets/javascripts/timeoutPopup.js index 1becfc48d..c331cb0f7 100644 --- a/app/assets/javascripts/timeoutPopup.js +++ b/app/assets/javascripts/timeoutPopup.js @@ -5,7 +5,7 @@ const sessionTimer = document.getElementById("sessionTimer"); setTimeout(function() { - var timeTillSessionEnd = new Date().getTime() + (1 * 10 * 1000); + var timeTillSessionEnd = new Date().getTime() + (5 * 60 * 1000); var x = setInterval(function() { var now = new Date().getTime(); var difference = timeTillSessionEnd - now; @@ -21,7 +21,7 @@ redirectToSignin(); } }, 1000); - }, 1 * 20 * 1000); + }, 1 * 60 * 1000); function redirectToSignin() { window.location.href = '/sign-in'; diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 106db0c69..483115985 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -11,6 +11,7 @@ {% endblock %} {% block head %} + {% if current_user.is_authenticated %} {% block sessionUserWarning %}