Added alt-detection. Just need to set up pre-delete for userModel function to remove refrences to itself on alt accounts

This commit is contained in:
rainbow napkin 2024-12-24 10:57:55 -05:00
parent 6e785dc211
commit 980c84afff
14 changed files with 346 additions and 12 deletions

View file

@ -35,10 +35,10 @@ module.exports.post = async function(req, res){
//if we found any related nuked bans
if(nukedBans != null){
//Shit our pants!
return errorHandler(res, 'Cannon re-create banned account!', 'unauthorized');
return errorHandler(res, 'Cannot get alts for non-existant user!');
}
await userModel.register(user)
await userModel.register(user, req.ip);
return res.sendStatus(200);
}else{
res.status(400);