...
|
...
|
@@ -87,8 +87,6 @@ module.exports = { |
|
|
return callback(null, result);
|
|
|
};
|
|
|
var loginErrcallback = function (err) {
|
|
|
req.session.captchaErrorTimes +=1 ;
|
|
|
console.log(req.session.captchaErrorTimes);
|
|
|
result.needCaptcha = true;
|
|
|
return callback(null, result);
|
|
|
};
|
...
|
...
|
@@ -100,7 +98,6 @@ module.exports = { |
|
|
if(userData.data_authority&&userData.data_authority.brand&&userData.data_authority.brand.list){
|
|
|
userInfo.brands=userData.data_authority.brand.is_all?"0":Object.keys(userData.data_authority.brand.list);
|
|
|
}
|
|
|
req.session.captchaErrorTimes = 0 ;
|
|
|
common.allRight().sessionAsync(user, password).done(function (allRes,sesRes) {
|
|
|
var cookie = sesRes.caseless.dict["set-cookie"];
|
|
|
allRes.data.forEach(function (data) {
|
...
|
...
|
|