Alt account entries now deleted with account upon account deletion.
This commit is contained in:
parent
980c84afff
commit
60801f0dc2
3 changed files with 29 additions and 10 deletions
|
|
@ -35,7 +35,7 @@ module.exports.post = async function(req, res){
|
|||
//if we found any related nuked bans
|
||||
if(nukedBans != null){
|
||||
//Shit our pants!
|
||||
return errorHandler(res, 'Cannot get alts for non-existant user!');
|
||||
return errorHandler(res, 'Cannot re-create banned account!', 'unauthorized');
|
||||
}
|
||||
|
||||
await userModel.register(user, req.ip);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ module.exports.get = async function(req, res){
|
|||
const userDB = await userModel.findOne({user: data.user});
|
||||
|
||||
if(userDB == null){
|
||||
return errorHandler(res, 'Cannot re-create banned account!', 'unauthorized');
|
||||
return errorHandler(res, 'Cannot get alts for non-existant user!');
|
||||
}
|
||||
|
||||
return res.render('partial/tooltip/altList', {alts: await userDB.getAltProfiles()});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue