简体   繁体   English

使用 javascript 和激活器的电子邮件确认

[英]email confirmation using javascript and activator

I need to set up email confirmation/verification for my Login & Registration feature.我需要为我的登录和注册功能设置电子邮件确认/验证。 I found Activator on github, its suppose to be a simple way to handle user activation and password reset for your nodejs apps ( https://github.com/deitch/activator ).我在 github 上找到了 Activator,它被认为是一种处理 nodejs 应用程序的用户激活和密码重置的简单方法( https://github.com/deitch/activator )。 I've read the docs but cannot get the simple example.js working at all.我已经阅读了文档,但根本无法使用简单的 example.js。 I don't understand this error.. any help would be greatly appreciated.我不明白这个错误.. 任何帮助将不胜感激。

 throw new Error('Most middleware (like ' + name + ') is no longer bundle
            ^
Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
    at Function.Object.defineProperty.get (/Users/user/Desktop/activator-master/node_modules/express/lib/express.js:99:13)
    at Object.<anonymous> (/Users/user/Desktop/activator-master/example.js:139:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
1 Oct 12:16:29 - [nodemon] app crashed - waiting for file changes before starting...

你试过了吗:

npm install body-parser

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM