From fd088208f803ef41830c7c9adf8341e9e38f8686 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 29 May 2019 19:31:18 -0600 Subject: [PATCH] Version 75: * The login page should no longer automatically log in if you just closed UI3 less than 5 seconds ago. --- login.htm | 7 ++++++- ui3.htm | 2 +- ui3/ui3.js | 15 ++++++++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/login.htm b/login.htm index 124e7bb..d3cf57a 100644 --- a/login.htm +++ b/login.htm @@ -6,7 +6,7 @@ Blue Iris Login @@ -166,6 +166,11 @@

%%SYSNAME%%

{ SetPersistedValue("bi_override_disable_auto_login_once", "0"); } + var lastUnload = GetPersistedValue("bi_lastunload"); + if (lastUnload > Date.now()) + SetPersistedValue("bi_lastunload", 0); + else if (!skipAutoLogin) + skipAutoLogin = Date.now() - lastUnload < 5000; clearTimeout(showLoadingMessageTimeout); $("#loginLoading").hide(); $("#login").show(); diff --git a/ui3.htm b/ui3.htm index eeaaba9..baed7bb 100644 --- a/ui3.htm +++ b/ui3.htm @@ -42,7 +42,7 @@ };