Authored by 王水玲

Merge branch 'feature/passport' into release/4.8

@@ -81,7 +81,7 @@ let index = (req, res, next) => { @@ -81,7 +81,7 @@ let index = (req, res, next) => {
81 passport: { 81 passport: {
82 region: passportHelper.getCountry(), 82 region: passportHelper.getCountry(),
83 location: '+86', 83 location: '+86',
84 - captchaUrl: helpers.urlFormat('/passport/images', {t: Date.now()}), 84 + captchaUrl: helpers.urlFormat('/passport/imagesNode', {t: Date.now()}),
85 itemUrl: helpers.urlFormat('/help/', {category_id: 9}), 85 itemUrl: helpers.urlFormat('/help/', {category_id: 9}),
86 referUrl: refer, 86 referUrl: refer,
87 loginUrl: helpers.urlFormat('/passport/login', {refer: refer}), 87 loginUrl: helpers.urlFormat('/passport/login', {refer: refer}),
@@ -108,7 +108,7 @@ const indexPageDataAsync = () => { @@ -108,7 +108,7 @@ const indexPageDataAsync = () => {
108 coverImg: banner.img, 108 coverImg: banner.img,
109 countryCode: 86, 109 countryCode: 86,
110 countryName: '中国', 110 countryName: '中国',
111 - captchaUrl: helpers.urlFormat('/passport/images', {t: moment().unix()}), 111 + captchaUrl: helpers.urlFormat('/passport/imagesNode', {t: moment().unix()}),
112 countryList: countryList 112 countryList: countryList
113 } 113 }
114 }; 114 };
@@ -150,6 +150,6 @@ router.get('/passport/back/resetSuccess', @@ -150,6 +150,6 @@ router.get('/passport/back/resetSuccess',
150 back.validateSuccessStatusPage, 150 back.validateSuccessStatusPage,
151 back.resetPwdSuccessPage); 151 back.resetPwdSuccessPage);
152 152
153 -router.get('/passport/images', captcha.generate); 153 +router.get('/passport/imagesNode', captcha.generate);
154 154
155 module.exports = router; 155 module.exports = router;
@@ -25,7 +25,7 @@ var mailAc = require('../common/ac-email'); // 邮箱自动完成 @@ -25,7 +25,7 @@ var mailAc = require('../common/ac-email'); // 邮箱自动完成
25 25
26 var $remember = $('.remember-me'); 26 var $remember = $('.remember-me');
27 27
28 -var captchaUrl = '/passport/images?t='; // /passport/images?t=1454464125 28 +var captchaUrl = '/passport/imagesNode?t='; // /passport/images?t=1454464125
29 29
30 var $captchaWrap = $('.captcha-wrap'), 30 var $captchaWrap = $('.captcha-wrap'),
31 $captchaImg = $captchaWrap.find('#captcha-img'); 31 $captchaImg = $captchaWrap.find('#captcha-img');