Built motion from commit c8b5f0240.|1.0.26
[motion.git] / server / auth / local / passport.js
index a52dbc9..0f7251b 100644 (file)
@@ -1 +1 @@
-var _0x576e=["\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(_0x576e[0]);var LocalStrategy=require(_0x576e[2])[_0x576e[1]];var license=require(_0x576e[3]);exports[_0x576e[4]]= function(_0xe88ex4,_0xe88ex5){passport[_0x576e[15]](_0x576e[5], new LocalStrategy({usernameField:_0x576e[6],passwordField:_0x576e[7]},function(_0xe88ex6,_0xe88ex7,_0xe88ex8){var _0xe88ex9;return _0xe88ex4[_0x576e[14]]({where:{name:_0xe88ex6}})[_0x576e[10]](function(_0xe88exc){_0xe88ex9= _0xe88exc;if(!_0xe88ex9||  !_0xe88exc[_0x576e[12]](_0xe88ex7)){throw  new Error(_0x576e[13])};return _0xe88ex9})[_0x576e[10]](license[_0x576e[11]]())[_0x576e[10]](function(_0xe88exb){if(_0xe88exb){return _0xe88ex8(null,_0xe88ex9)}else {return _0xe88ex8(null,false,{message:_0x576e[9]})}})[_0x576e[8]](function(_0xe88exa){return _0xe88ex8(_0xe88exa,false,null)})}))}
\ No newline at end of file
+var _0x1c34=["\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(_0x1c34[0]);var LocalStrategy=require(_0x1c34[2])[_0x1c34[1]];var license=require(_0x1c34[3]);exports[_0x1c34[4]]= function(_0x37c8x4,_0x37c8x5){passport[_0x1c34[15]](_0x1c34[5], new LocalStrategy({usernameField:_0x1c34[6],passwordField:_0x1c34[7]},function(_0x37c8x6,_0x37c8x7,_0x37c8x8){var _0x37c8x9;return _0x37c8x4[_0x1c34[14]]({where:{name:_0x37c8x6}})[_0x1c34[10]](function(_0x37c8xc){_0x37c8x9= _0x37c8xc;if(!_0x37c8x9||  !_0x37c8xc[_0x1c34[12]](_0x37c8x7)){throw  new Error(_0x1c34[13])};return _0x37c8x9})[_0x1c34[10]](license[_0x1c34[11]]())[_0x1c34[10]](function(_0x37c8xb){if(_0x37c8xb){return _0x37c8x8(null,_0x37c8x9)}else {return _0x37c8x8(null,false,{message:_0x1c34[9]})}})[_0x1c34[8]](function(_0x37c8xa){return _0x37c8x8(_0x37c8xa,false,null)})}))}
\ No newline at end of file