我正在尝试设置用户注册的功能。注册表单使用Redux表单,身份验证由passport.js处理,我为我的用户数据库使用mongoDB(mLab)。 当我尝试注册新用户,我得到以下错误: POST http://localhost:3000/signup 404 (Not Found)
Uncaught (in promise) Error: Request failed with status
我有一个Express服务器,我正在使用Passport-local进行身份验证。我有以下受保护的路线: app.post("/api/test", connect.ensureLoggedIn("/"), (req, res) => {
let test = new Test(req.body);
test
.save()
.then(data => {
re
我正在使用passport,express-session和connect-pg-simple。 问题是,会话不正确地从存储获得,它正确地(我希望,但怀疑)得到保存。 我的设置与我在许多教程中找到的相同。 server.js: import express from 'express';
import next from 'next';
import bodyParser from 'body
当使用passport-local和sequelize for MySQL进行用户认证时,我遇到了belo提到的错误。当运行服务器时,它正在SQL中创建新表(如果尚未创建),但只要我点击注册按钮,就会显示错误。 错误: TypeError: Cannot read property 'findOne' of undefined
at Strategy._verify (E:\Web De