module.exports=function(Filter){
    Filter.define("/!(login)", ["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');
			}
		}
	});
};