Authored by 黄涛

init

  1 +/**
  2 + * 找回密码
  3 + * Created by yoho on 2016/6/12.
  4 + */
  5 +
  6 +'use strict';
  7 +
  8 +const library = '../../../library';
  9 +const helpers = require(`${library}/helpers`);
  10 +
  11 +/**
  12 + * 通过邮箱找回密码
  13 + * @param req
  14 + * @param res
  15 + */
  16 +module.exports.byEmail = (req, res) => {
  17 +
  18 + let data = {
  19 + backUrl: helpers.urlFormat('/signin.html'),
  20 + headerText: '找回密码',
  21 + isPassportPage: true,
  22 + backEmail: true
  23 + };
  24 +
  25 + res.render('back/by-email', {
  26 + result: data,
  27 + module: 'passport',
  28 + page: 'back',
  29 + title: data.backUrl
  30 + });
  31 +};
  1 +/**
  2 + * Created by yoho on 2016/6/12.
  3 + */
  4 +
  5 +module.exports.email = (email) => {
  6 + email;
  7 +
  8 +};
  9 +
@@ -14,5 +14,6 @@ const router = express.Router(); // eslint-disable-line @@ -14,5 +14,6 @@ const router = express.Router(); // eslint-disable-line
14 14
15 router.get('/login/wechat', login.wechat.beforeLogin, login.wechat.login); // 登录 15 router.get('/login/wechat', login.wechat.beforeLogin, login.wechat.login); // 登录
16 router.get('/login/wechat/callback', login.wechat.callback); 16 router.get('/login/wechat/callback', login.wechat.callback);
  17 +router.get('/ ');
17 18
18 module.exports = router; 19 module.exports = router;