Built motion from commit 2438401.|1.0.5
[motion.git] / server / auth / local / passport.js
index fe486e1..1e2ee0a 100644 (file)
@@ -1 +1 @@
-var _0x6eb9=["\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(_0x6eb9[0]);var LocalStrategy=require(_0x6eb9[2])[_0x6eb9[1]];var Settings=require(_0x6eb9[4])[_0x6eb9[3]];var license=require(_0x6eb9[5]);exports[_0x6eb9[6]]=function(_0xea11x5,_0xea11x6){passport[_0x6eb9[17]](_0x6eb9[7], new LocalStrategy({usernameField:_0x6eb9[8],passwordField:_0x6eb9[9]},function(_0xea11x7,_0xea11x8,_0xea11x9){var _0xea11xa;var _0xea11xb;var _0xea11xc;return _0xea11x5[_0x6eb9[16]]({where:{name:_0xea11x7}})[_0x6eb9[12]](function(_0xea11xf){_0xea11xa=_0xea11xf;if(!_0xea11xa||!_0xea11xf[_0x6eb9[14]](_0xea11x8)){throw  new Error({message:_0x6eb9[15]})};return _0xea11xa})[_0x6eb9[12]](license[_0x6eb9[13]]())[_0x6eb9[12]](function(_0xea11xe){if(_0xea11xe){return _0xea11x9(null,_0xea11xa)}else {return _0xea11x9(null,false,{message:_0x6eb9[11]})}})[_0x6eb9[10]](function(_0xea11xd){return _0xea11x9(null,false,_0xea11xd)})}))}
\ No newline at end of file
+var _0xf468=["\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","\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(_0xf468[0]);var LocalStrategy=require(_0xf468[2])[_0xf468[1]];var license=require(_0xf468[3]);exports[_0xf468[4]]= function(_0x13e4x4,_0x13e4x5){passport[_0xf468[15]](_0xf468[5], new LocalStrategy({usernameField:_0xf468[6],passwordField:_0xf468[7]},function(_0x13e4x6,_0x13e4x7,_0x13e4x8){var _0x13e4x9;return _0x13e4x4[_0xf468[14]]({where:{name:_0x13e4x6}})[_0xf468[10]](function(_0x13e4xc){_0x13e4x9= _0x13e4xc;if(!_0x13e4x9|| !_0x13e4xc[_0xf468[12]](_0x13e4x7)){throw  new Error(_0xf468[13])};return _0x13e4x9})[_0xf468[10]](license[_0xf468[11]]())[_0xf468[10]](function(_0x13e4xb){if(_0x13e4xb){return _0x13e4x8(null,_0x13e4x9)}else {return _0x13e4x8(null,false,{message:_0xf468[9]})}})[_0xf468[8]](function(_0x13e4xa){return _0x13e4x8(_0x13e4xa,false,null)})}))}
\ No newline at end of file