Authored by htoooth

remove lib

@@ -130,12 +130,6 @@ const checkAPI = (req, res) => { @@ -130,12 +130,6 @@ const checkAPI = (req, res) => {
130 }; 130 };
131 131
132 const required = (req, res, next) => { 132 const required = (req, res, next) => {
133 - req.app.locals.pc = _.merge(req.app.locals.pc, {  
134 - geetest: {  
135 - validation: false  
136 - }  
137 - });  
138 -  
139 let captchaAPI = _.get(req.app.locals.pc, 'geetest.validation', false) ? gtestCaptcha.requiredAPI : requiredAPI; 133 let captchaAPI = _.get(req.app.locals.pc, 'geetest.validation', false) ? gtestCaptcha.requiredAPI : requiredAPI;
140 134
141 if (req.body.loginType === 'password') { 135 if (req.body.loginType === 'password') {
@@ -110,13 +110,6 @@ const common = { @@ -110,13 +110,6 @@ const common = {
110 110
111 const local = { 111 const local = {
112 loginPage: (req, res) => { 112 loginPage: (req, res) => {
113 - // 测试用  
114 - req.app.locals.pc = _.merge(req.app.locals.pc, {  
115 - geetest: {  
116 - validation: false  
117 - }  
118 - });  
119 -  
120 // 清除cookie 113 // 清除cookie
121 res.clearCookie('_UID', { 114 res.clearCookie('_UID', {
122 domain: config.cookieDomain 115 domain: config.cookieDomain