Questions tagged as 'express'

0
answers

How to redirect user to the login screen when he returns the page through the browser nodejs

Good afternoon, I'm having a little problem ... I made a simple login app using express and nodejs, it logs quietly and displaces, but when the user shifts and returns a page from the browser, do I redirect it to the login screen? //Securi...
asked by 05.01.2019 / 19:37
1
answer

NodeJS returns: Illegal arguments: number

const bodyParser = require('body-parser'); const bcrypt = require('bcryptjs'); //Bring in User Model let User = require('../models/user'); var urlencodedParser = bodyParser.urlencoded({extended: false}); module.exports = function(app){...
asked by 23.11.2017 / 21:19
1
answer

Route.get () requires the callback function but got the [object Undefined] [closed]

In a nodejs application I get this error message: Version: node: 8.9.2 npm: 5.5.1 express: 4.15.5 Image of the error: App.js code /** * Module dependencies. */ var http = require('http'); var express = requir...
asked by 07.12.2017 / 18:22