mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Added user authentication check to timer
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user