Track / expose a list of registered users.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3949 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-08-04 00:07:12 +00:00
parent 6628a5c420
commit 353f2ccc13
2 changed files with 20 additions and 0 deletions

View File

@ -172,6 +172,13 @@ async function getProcessBlob(blobId, key, options) {
}
},
'user': getUser(process, process),
'users': function() {
try {
return JSON.parse(new Database('auth').get('users'));
} catch {
return [];
}
},
'apps': user => getApps(user, process),
'getSockets': getSockets,
'permissionTest': function(permission) {