...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-04-13 10:21:07
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-04-20 18:33:48
|
|
|
* @Last Modified time: 2017-04-24 10:52:08
|
|
|
*/
|
|
|
|
|
|
/* ********************
|
...
|
...
|
@@ -49,9 +49,9 @@ const passwordResetPage = (req, res) => { |
|
|
*/
|
|
|
const passwordReset = (req, res, next) => {
|
|
|
let passwordWeakObj = req.session.passwordWeak;
|
|
|
let uid = req.user && req.user.uid || passwordWeakObj.uid;
|
|
|
let uid = (req.user && req.user.uid) || (passwordWeakObj && passwordWeakObj.uid);
|
|
|
|
|
|
if (!uid || !passwordWeakObj.token) {
|
|
|
if (!uid || !passwordWeakObj || !passwordWeakObj.token) {
|
|
|
return res.json({
|
|
|
code: 400,
|
|
|
massage: '非法请求'
|
...
|
...
|
|