Implement user blocking on server side

This commit is contained in:
Chocobozzz 2018-08-08 14:58:21 +02:00
parent 6b09aba90d
commit e69219184b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
15 changed files with 287 additions and 59 deletions

View file

@ -39,7 +39,7 @@ function token (req: express.Request, res: express.Response, next: express.NextF
if (err) {
return res.status(err.status)
.json({
error: 'Authentication failed.',
error: err.message,
code: err.name
})
.end()