Fix session lockout being interrupted by rotation
Critical fix: - Rotation now pauses completely when session is locked - Previously rotation would continue running in background while lockout screen displayed - This caused the lockout screen to disappear after ~1 minute when rotation occurred - Added sessionLocked check to rotation logic (line 3888) - Added sessionLocked check to inactivity prompt logic (line 3836) - Password lockout screen now stays visible until correct password is entered
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
# * Inactivity check now happens BEFORE rotation check
|
||||
# * Prevents rotation from interrupting the inactivity prompt
|
||||
# * Rotation pauses while inactivity prompt is displayed
|
||||
# - Fixed session lockout being interrupted by rotation
|
||||
# * Rotation now pauses completely when session is locked
|
||||
# * Inactivity prompts won't appear while session is locked
|
||||
# * Password lockout screen stays visible until correct password entered
|
||||
#
|
||||
# Previous features (v0.9.8):
|
||||
# - Added password-protected session lockout
|
||||
@@ -3832,7 +3836,8 @@ function startMasterTimer(){
|
||||
// 6. INACTIVITY CHECK (works on ALL pages where user has interacted!)
|
||||
// v0.9.9 FIX: Check inactivity BEFORE rotation to ensure prompt appears on rotation sites
|
||||
// The prompt allows user to continue or return to rotation
|
||||
if(!showingHidden){
|
||||
// Don't show inactivity prompt if session is locked
|
||||
if(!showingHidden&&!sessionLocked){
|
||||
const homeViewIdx=getHomeViewIndex();
|
||||
const currentTabIdx=viewIndexToTabIndex(currentIndex);
|
||||
const isOnHomePage=(homeViewIdx>=0&¤tIndex===homeViewIdx);
|
||||
@@ -3884,8 +3889,8 @@ function startMasterTimer(){
|
||||
}
|
||||
|
||||
// 7. SITE ROTATION
|
||||
// v0.9.9: Don't rotate if inactivity prompt is showing
|
||||
if(!showingHidden&&views.length>1&&(!promptWindow||promptWindow.isDestroyed())){
|
||||
// v0.9.9: Don't rotate if inactivity prompt is showing or session is locked
|
||||
if(!showingHidden&&views.length>1&&(!promptWindow||promptWindow.isDestroyed())&&!sessionLocked){
|
||||
const currentTabIdx=viewIndexToTabIndex(currentIndex);
|
||||
|
||||
if(currentTabIdx>=0&&tabs[currentTabIdx]){
|
||||
|
||||
Reference in New Issue
Block a user