dongshukou0240 2018-07-25 06:01
浏览 81

使用连接到MySQL数据库的Node.js路由通过表单进行身份验证

I developed a Node.js API that executes its requests on a MySQL database. I also created a PHP webapp that uses this Node.js API.

I would need now to implement an authetication feature on my web application. The informations of my users are stored in the MySQL database.

So for the web part I made a form that sends a POST request, with all the user's informations, linking to a route in the API.

Then for the Node.js part, I have read that passport module makes authentication simple, but I am having issues setting it up with what I get from the POST request.

Can someone explain me how I should do that ?

I do not know which code I have to show you for a better understanding of my issue, so just ask if you want any further explanation or code snippets from what I have already.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 求图像处理的matlab方案
    • ¥50 winform中使用edge的Kiosk模式
    • ¥15 关于#python#的问题:功能监听网页
    • ¥15 怎么让wx群机器人发送音乐
    • ¥15 fesafe材料库问题
    • ¥35 beats蓝牙耳机怎么查看日志
    • ¥15 Fluent齿轮搅油
    • ¥15 八爪鱼爬数据为什么自己停了
    • ¥15 交替优化波束形成和ris反射角使保密速率最大化
    • ¥15 树莓派与pix飞控通信