* User idle timeout

* Only allow one session per user at a time
* user 'timestamp' property -> 'account_created'
* Better User.getLegacySecurityLevel() using group membership
* Client connection management -> client_connections.js
* Minor changes & cleanup
This commit is contained in:
Bryan Ashby
2015-08-04 22:35:59 -06:00
parent 36a8d771e8
commit 8d1fac41a9
11 changed files with 164 additions and 52 deletions

View File

@@ -19,6 +19,8 @@ exports.getModule = AbracadabraModule;
var activeDoorNodeInstances = {};
var doorInstances = {}; // name -> { count : <instCount>, { <nodeNum> : <inst> } }
exports.moduleInfo = {
name : 'Abracadabra',
desc : 'External BBS Door Module',
@@ -56,7 +58,8 @@ function AbracadabraModule(options) {
/*
:TODO:
* disconnecting wile door is open leaves dosemu
* http://bbslink.net/sysop.php support
* Font support ala all other menus... or does this just work?
*/
this.initSequence = function() {

View File

@@ -92,7 +92,7 @@ function submitApplication(callingMenu, formData, extraArgs) {
affiliation : formData.value.affils,
email_address : formData.value.email,
web_address : formData.value.web,
timestamp : new Date().toISOString(),
account_created : new Date().toISOString(),
// :TODO: This is set in User.create() -- proabbly don't need it here:
//account_status : Config.users.requireActivation ? user.User.AccountStatus.inactive : user.User.AccountStatus.active,

BIN
mods/art/IDLELOG.ANS Normal file

Binary file not shown.

View File

@@ -285,6 +285,14 @@
////////////////////////////////////////////////////////////////////////
// Mods
////////////////////////////////////////////////////////////////////////
"idleLogoff" : {
"art" : "IDLELOG",
"options" : { "cls" : true },
"action" : "@systemMethod:logoff"
},
////////////////////////////////////////////////////////////////////////
// Mods
////////////////////////////////////////////////////////////////////////
"lastCallers" :{
"module" : "last_callers",
"art" : "LASTCALL.ANS",