...
|
...
|
@@ -215,6 +215,7 @@ const resetPasswordPage = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
const verifyCodeByMobilePage = (req, res, next) => {
|
|
|
req.session.type = 'back-step2';
|
|
|
|
|
|
passportHelper.getLeftBannerAsync()
|
|
|
.then(result => {
|
...
|
...
|
@@ -281,6 +282,10 @@ const verifyCodeByMobileAPI = (req, res) => { |
|
|
return res.json(ERR);
|
|
|
}
|
|
|
|
|
|
if (session.type !== 'back-step2') {
|
|
|
return res.json(ERR);
|
|
|
}
|
|
|
|
|
|
service.verifyCodyByMobileAsync(area, mobile, mobileCode)
|
|
|
.then(result => {
|
|
|
res.json(result);
|
...
|
...
|
|