Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录问题 #120

Open
LiQinFei opened this issue May 2, 2018 · 3 comments
Open

登录问题 #120

LiQinFei opened this issue May 2, 2018 · 3 comments

Comments

@LiQinFei
Copy link

LiQinFei commented May 2, 2018

登录出现异常

@sinchang
Copy link
Contributor

sinchang commented May 2, 2018

信息再详细点吧

@lzt9977
Copy link

lzt9977 commented May 24, 2018

image
注册完之后 不必去激活吧!直接密码登录会失败

`const localStrategy = app.passport.authenticate('local', {
successRedirect: '/',
failureRedirect: '/signin',
});

router.post('/passport/local', localStrategy);`

这个东西会跳转到失败

@ouyangxuanyun
Copy link

ouyangxuanyun commented Jun 13, 2018

如果不想激活邮箱就登录的话要注释掉 /app.js 中的

if (!existUser.active) {
      // 发送激活邮件
      return null;
    }

否则要配置邮件服务 /app/config/config.default.js

config.mail_opts = {
    host: 'smtp.126.com',
    port: 25,
    auth: {
      user: 'club@126.com',
      pass: 'club'
    },
    ignoreTLS: true
  };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants