Built motion from commit 038bc69.|0.0.119
[motion.git] / server / auth / local / passport.js
index e93cfa4..f287025 100644 (file)
@@ -1 +1 @@
-var _0xd41d=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x6C\x6F\x63\x61\x6C","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x73\x65\x74\x75\x70","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x61\x74\x63\x68","\x6C\x69\x63\x65\x6E\x73\x65","\x64\x65\x63\x72\x79\x70\x74","\x70\x61\x72\x73\x65","\x61\x67\x65\x6E\x74\x73","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x6C\x6F\x67\x69\x6E\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64\x2E","\x74\x68\x65\x6E","\x61\x67\x65\x6E\x74","\x63\x6F\x75\x6E\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x57\x72\x6F\x6E\x67\x20\x63\x72\x65\x64\x65\x6E\x74\x69\x61\x6C\x73\x2E","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x75\x73\x65\x72","\x6F\x6E\x6C\x69\x6E\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0xd41d[0]);var LocalStrategy=require(_0xd41d[2])[_0xd41d[1]];var Settings=require(_0xd41d[4])[_0xd41d[3]];var license=require(_0xd41d[5]);exports[_0xd41d[6]]=function(_0xe23bx5,_0xe23bx6){passport[_0xd41d[27]](_0xd41d[7], new LocalStrategy({usernameField:_0xd41d[8],passwordField:_0xd41d[9]},function(_0xe23bx7,_0xe23bx8,_0xe23bx9){var _0xe23bxa;var _0xe23bxb;var _0xe23bxc;return _0xe23bx5[_0xd41d[26]]({where:{name:_0xe23bx7}})[_0xd41d[16]](function(_0xe23bx11){_0xe23bxa=_0xe23bx11;if(!_0xe23bxa||!_0xe23bx11[_0xd41d[20]](_0xe23bx8)){return _0xe23bx9(null,false,{message:_0xd41d[21]})};return (_0xe23bxa[_0xd41d[22]]===_0xd41d[23]||_0xe23bxa[_0xd41d[22]]===_0xd41d[24]||(_0xe23bxa[_0xd41d[22]]===_0xd41d[17]&&_0xe23bxa[_0xd41d[25]]))?_0xe23bx9(null,_0xe23bxa):_0xe23bxa;})[_0xd41d[16]](function(_0xe23bx11){return Settings[_0xd41d[19]](1)})[_0xd41d[16]](function(_0xe23bx10){_0xe23bxb=_0xe23bx10;return _0xe23bx5[_0xd41d[18]]({where:{role:_0xd41d[17],online:true}});})[_0xd41d[16]](function(_0xe23bxe){var _0xe23bxf=false;if(_0xe23bxb[_0xd41d[11]]){_0xe23bxc=license[_0xd41d[12]](_0xe23bxb[_0xd41d[11]]);_0xe23bxc=JSON[_0xd41d[13]](_0xe23bxc);if(_0xe23bxc[_0xd41d[14]]>_0xe23bxe){_0xe23bxf=true};};if(!_0xe23bxf){return _0xe23bx9(null,false,{message:_0xd41d[15]})};return _0xe23bx9(null,_0xe23bxa);})[_0xd41d[10]](function(_0xe23bxd){return _0xe23bx9(_0xe23bxd)});}))};
\ No newline at end of file
+var _0xc1ac=["\x70\x61\x73\x73\x70\x6F\x72\x74","\x53\x74\x72\x61\x74\x65\x67\x79","\x70\x61\x73\x73\x70\x6F\x72\x74\x2D\x6C\x6F\x63\x61\x6C","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x73\x65\x74\x75\x70","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x61\x74\x63\x68","\x4D\x61\x78\x69\x6D\x75\x6D\x20\x6C\x6F\x67\x69\x6E\x20\x6C\x69\x6D\x69\x74\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x72\x65\x61\x63\x68\x65\x64\x2E","\x74\x68\x65\x6E","\x69\x73\x56\x61\x6C\x69\x64\x41\x67\x65\x6E\x74","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x57\x72\x6F\x6E\x67\x20\x63\x72\x65\x64\x65\x6E\x74\x69\x61\x6C\x73","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0xc1ac[0]);var LocalStrategy=require(_0xc1ac[2])[_0xc1ac[1]];var Settings=require(_0xc1ac[4])[_0xc1ac[3]];var license=require(_0xc1ac[5]);exports[_0xc1ac[6]]= function(_0x9e2ex5,_0x9e2ex6){passport[_0xc1ac[17]](_0xc1ac[7], new LocalStrategy({usernameField:_0xc1ac[8],passwordField:_0xc1ac[9]},function(_0x9e2ex7,_0x9e2ex8,_0x9e2ex9){var _0x9e2exa;var _0x9e2exb;var _0x9e2exc;return _0x9e2ex5[_0xc1ac[16]]({where:{name:_0x9e2ex7}})[_0xc1ac[12]](function(_0x9e2exf){_0x9e2exa= _0x9e2exf;if(!_0x9e2exa|| !_0x9e2exf[_0xc1ac[14]](_0x9e2ex8)){throw  new Error(_0xc1ac[15])};return _0x9e2exa})[_0xc1ac[12]](license[_0xc1ac[13]]())[_0xc1ac[12]](function(_0x9e2exe){if(_0x9e2exe){return _0x9e2ex9(null,_0x9e2exa)}else {return _0x9e2ex9(null,false,{message:_0xc1ac[11]})}})[_0xc1ac[10]](function(_0x9e2exd){return _0x9e2ex9(_0x9e2exd,false,null)})}))}
\ No newline at end of file