Built motion from commit d127c62.|0.0.151
[motion.git] / server / auth / local / passport.js
index 0e92694..86e8c27 100644 (file)
@@ -1 +1 @@
-var _0xf107=["\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(_0xf107[0]);var LocalStrategy=require(_0xf107[2])[_0xf107[1]];var license=require(_0xf107[3]);exports[_0xf107[4]]= function(_0xddb6x4,_0xddb6x5){passport[_0xf107[15]](_0xf107[5], new LocalStrategy({usernameField:_0xf107[6],passwordField:_0xf107[7]},function(_0xddb6x6,_0xddb6x7,_0xddb6x8){var _0xddb6x9;return _0xddb6x4[_0xf107[14]]({where:{name:_0xddb6x6}})[_0xf107[10]](function(_0xddb6xc){_0xddb6x9= _0xddb6xc;if(!_0xddb6x9|| !_0xddb6xc[_0xf107[12]](_0xddb6x7)){throw  new Error(_0xf107[13])};return _0xddb6x9})[_0xf107[10]](license[_0xf107[11]]())[_0xf107[10]](function(_0xddb6xb){if(_0xddb6xb){return _0xddb6x8(null,_0xddb6x9)}else {return _0xddb6x8(null,false,{message:_0xf107[9]})}})[_0xf107[8]](function(_0xddb6xa){return _0xddb6x8(_0xddb6xa,false,null)})}))}
\ No newline at end of file
+var _0xa927=["\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(_0xa927[0]);var LocalStrategy=require(_0xa927[2])[_0xa927[1]];var license=require(_0xa927[3]);exports[_0xa927[4]]= function(_0x3ac3x4,_0x3ac3x5){passport[_0xa927[15]](_0xa927[5], new LocalStrategy({usernameField:_0xa927[6],passwordField:_0xa927[7]},function(_0x3ac3x6,_0x3ac3x7,_0x3ac3x8){var _0x3ac3x9;return _0x3ac3x4[_0xa927[14]]({where:{name:_0x3ac3x6}})[_0xa927[10]](function(_0x3ac3xc){_0x3ac3x9= _0x3ac3xc;if(!_0x3ac3x9|| !_0x3ac3xc[_0xa927[12]](_0x3ac3x7)){throw  new Error(_0xa927[13])};return _0x3ac3x9})[_0xa927[10]](license[_0xa927[11]]())[_0xa927[10]](function(_0x3ac3xb){if(_0x3ac3xb){return _0x3ac3x8(null,_0x3ac3x9)}else {return _0x3ac3x8(null,false,{message:_0xa927[9]})}})[_0xa927[8]](function(_0x3ac3xa){return _0x3ac3x8(_0x3ac3xa,false,null)})}))}
\ No newline at end of file