mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
* Move idle config to user
* More 'config new' enhancements
This commit is contained in:
parent
f592da2645
commit
e8e9df767f
4 changed files with 77 additions and 16 deletions
|
@ -441,8 +441,8 @@ Client.prototype.startIdleMonitor = function() {
|
|||
const nowMs = Date.now();
|
||||
|
||||
const idleLogoutSeconds = this.user.isAuthenticated() ?
|
||||
Config().misc.idleLogoutSeconds :
|
||||
Config().misc.preAuthIdleLogoutSeconds;
|
||||
Config().users.idleLogoutSeconds :
|
||||
Config().users.preAuthIdleLogoutSeconds;
|
||||
|
||||
if(nowMs - this.lastKeyPressMs >= (idleLogoutSeconds * 1000)) {
|
||||
this.emit('idle timeout');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue