module.exports=function(Filter){
Filter.define("/!(login|captcha|checkCaptchaImg)", ["get","post"], "common_gray", function (gray, req, res, next){
if(gray.code==200){
next();
}else{
if(req.xhr){
res.json(gray);
}else{
res.redirect('/login');
}
}
});
};