mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added "test" user checking, unathorized http return code
This commit is contained in:
parent
1b078f88b0
commit
2beef493ba
5 changed files with 27 additions and 5 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue