Started work on site-wide toke command management & errorHandler

This commit is contained in:
rainbow napkin 2024-12-11 07:16:42 -05:00
parent d516fed309
commit af7f4219a5
12 changed files with 146 additions and 11 deletions

View file

@ -35,8 +35,7 @@ module.exports.post = async function(req, res){
//if we found any related nuked bans
if(nukedBans != null){
//Shit our pants!
res.status(401);
return res.send({errors:[{msg:"Cannot re-create banned account!",type:"unauthorized"}]});
return errorHandler(res, 'Cannon re-create banned account!', 'unauthorized');
}
await userModel.register(user)