mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
- the client (1.3.0) sends one-way hashes of the device's ids at sign-in; the server keys them again with a secret of its own (data/device-key) and keeps them per account (lib/devices.js). a sign-in without them is refused with 426 (AJ_REQUIRE_DEVICE=0 lets it in), so 1.2 clients cannot sign in. - hardware bans: every device an account used in the last 90 days. any id but a network card blocks sign-in, sign-up and the game, on any account. a network card match, ids that look altered, or a device shared with a banned player raise hardware alerts instead. - both panels: hardware ban and lift, the account's hardware ids, search by hardware id, other accounts by device or address, a timeline (bans, staff actions, reports, alerts), and hardware bans and alerts in the bans tab. - jam-a-grams and wall posts go into the chat log, the filtered ones marked not sent. chat search filters by kind, by what the filter stopped, and from a time back; each player's page lists their jam-a-grams and wall posts, sent and received. - account search runs on the server and ranks exact names first, then names starting with the search; the admin panel no longer downloads every account. hidden tabs only refresh the waiting counts in the title. masterpieces can be searched by maker, approved ones too. reports can show the reported player's chat at the time. links follow the open tab and player. - admin actions on accounts go into the moderator log. - privacy policy covers hardware hashes and the new logs.
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
"use strict";
|
|
|
|
const accounts = require("./accounts.js");
|
|
const bans = require("./bans.js");
|
|
const chatlog = require("./chatlog.js");
|
|
const devices = require("./devices.js");
|
|
const masterpieces = require("./masterpieces.js");
|
|
const support = require("./support.js");
|
|
const world = require("./world.js");
|
|
|
|
// an account deleted for good, by its owner (lib/manage.js) or by the admin
|
|
// (lib/panel.js), and what was kept about it elsewhere with it: its chat
|
|
// lines, its appeal, its feedback and username requests, the computers it
|
|
// was used from (lib/devices.js), and the paintings
|
|
// it made (from whoever holds one by now). what stays is said in the
|
|
// privacy policy (public/privacy.html): the record of bans and of what
|
|
// moderators did, under the name it had, until lib/retention.js ends it.
|
|
// the caller has taken the account out of the world and its pages.
|
|
module.exports = account => {
|
|
for (const id of masterpieces.madeBy(account)) {
|
|
world.removeMasterpiece(id);
|
|
}
|
|
bans.forget(account);
|
|
chatlog.forget(account);
|
|
devices.forget(account);
|
|
support.forget(account);
|
|
accounts.remove(account);
|
|
};
|