Skip to content

登录问题 #120

Open
Open

Description

@LiQinFei

登录出现异常

Activity

  1. sinchang commented on May 2, 2018

    @sinchang
    Contributor

    信息再详细点吧

  2. lzt9977 commented on May 24, 2018

    @lzt9977

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

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

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

    这个东西会跳转到失败

  3. ouyangxuanyun commented on Jun 13, 2018

    @ouyangxuanyun

    如果不想激活邮箱就登录的话要注释掉 /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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions