Added "test" user checking, unathorized http return code

This commit is contained in:
MrFry 2020-05-10 21:28:10 +02:00
parent 1b078f88b0
commit 2beef493ba
5 changed files with 27 additions and 5 deletions

View file

@ -6,6 +6,7 @@ module.exports = function (options) {
const { userDB, jsonResponse, exceptions } = options
const renderLogin = (req, res) => {
res.status('401') // Unauthorized
if (jsonResponse) {
res.json({
result: 'nouser',