Giter Site home page Giter Site logo

登录问题 about egg-cnode HOT 3 OPEN

cnodejs avatar cnodejs commented on August 17, 2024
登录问题

from egg-cnode.

Comments (3)

sinchang avatar sinchang commented on August 17, 2024

信息再详细点吧

from egg-cnode.

lzt9977 avatar lzt9977 commented on August 17, 2024

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

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

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

这个东西会跳转到失败

from egg-cnode.

ouyangxuanyun avatar ouyangxuanyun commented on August 17, 2024

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

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

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

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

from egg-cnode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.