Built motion from commit b5b971d.|0.0.97
[motion.git] / server / auth / local / passport.js
index e93cfa4..a4d2b82 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 _0x7d2e=["\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\x2E","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x7d2e[0]);var LocalStrategy=require(_0x7d2e[2])[_0x7d2e[1]];var Settings=require(_0x7d2e[4])[_0x7d2e[3]];var license=require(_0x7d2e[5]);exports[_0x7d2e[6]]=function(_0x74bcx5,_0x74bcx6){passport[_0x7d2e[17]](_0x7d2e[7], new LocalStrategy({usernameField:_0x7d2e[8],passwordField:_0x7d2e[9]},function(_0x74bcx7,_0x74bcx8,_0x74bcx9){var _0x74bcxa;var _0x74bcxb;var _0x74bcxc;return _0x74bcx5[_0x7d2e[16]]({where:{name:_0x74bcx7}})[_0x7d2e[12]](function(_0x74bcxf){_0x74bcxa=_0x74bcxf;if(!_0x74bcxa||!_0x74bcxf[_0x7d2e[14]](_0x74bcx8)){throw  new Error({message:_0x7d2e[15]})};return _0x74bcxa})[_0x7d2e[12]](license[_0x7d2e[13]]())[_0x7d2e[12]](function(_0x74bcxe){if(_0x74bcxe){return _0x74bcx9(null,_0x74bcxa)}else {return _0x74bcx9(null,false,{message:_0x7d2e[11]})}})[_0x7d2e[10]](function(_0x74bcxd){return _0x74bcx9(null,false,_0x74bcxd)})}))}
\ No newline at end of file