mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 07:48:37 +02:00
Fix kicker triggering & Show a notification when kicked-out
This commit is contained in:
@ -42,11 +42,12 @@
|
||||
// }, 1000);
|
||||
}
|
||||
|
||||
// Triggers the user logout
|
||||
function logoutUser() {
|
||||
clearTimeout(logoutTimer.value)
|
||||
console.log('inativity detected, user kicked out')
|
||||
|
||||
user.logout()
|
||||
user.logout({ kicked: true})
|
||||
}
|
||||
|
||||
function resetTimer() {
|
||||
|
@ -212,7 +212,7 @@
|
||||
|
||||
if (copied) {
|
||||
if(user.preferences.kickUserAfter == -1 && (permit_closing || false) === true) {
|
||||
user.logout()
|
||||
user.logout({ kicked: true})
|
||||
}
|
||||
else if(user.preferences.closeOtpOnCopy && (permit_closing || false) === true) {
|
||||
emit("please-close-me");
|
||||
|
Reference in New Issue
Block a user