|
|
/**
|
|
|
* 找回密码
|
|
|
* Created by yoho on 2016/6/12.
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const library = '../../../library';
|
|
|
const helpers = require(`${library}/helpers`);
|
|
|
|
|
|
/**
|
|
|
* 通过邮箱找回密码
|
|
|
* @param req
|
|
|
* @param res
|
|
|
*/
|
|
|
module.exports.byEmail = (req, res) => {
|
|
|
|
|
|
let data = {
|
|
|
backUrl: helpers.urlFormat('/signin.html'),
|
|
|
headerText: '找回密码',
|
|
|
isPassportPage: true,
|
|
|
backEmail: true
|
|
|
};
|
|
|
|
|
|
res.render('back/by-email', {
|
|
|
result: data,
|
|
|
module: 'passport',
|
|
|
page: 'back',
|
|
|
title: data.backUrl
|
|
|
});
|
|
|
}; |
...
|
...
|
|