Started work on site-wide toke command management & errorHandler
This commit is contained in:
parent
d516fed309
commit
af7f4219a5
12 changed files with 146 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue