Built motion from commit fdd6c00de.|1.0.35
[motion.git] / server / auth / local / passport.js
index e1339d5..d6facfa 100644 (file)
@@ -1 +1 @@
-var _0xa92e=["\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(_0xa92e[0]);var LocalStrategy=require(_0xa92e[2])[_0xa92e[1]];var license=require(_0xa92e[3]);exports[_0xa92e[4]]= function(_0xb8c0x4,_0xb8c0x5){passport[_0xa92e[15]](_0xa92e[5], new LocalStrategy({usernameField:_0xa92e[6],passwordField:_0xa92e[7]},function(_0xb8c0x6,_0xb8c0x7,_0xb8c0x8){var _0xb8c0x9;return _0xb8c0x4[_0xa92e[14]]({where:{name:_0xb8c0x6}})[_0xa92e[10]](function(_0xb8c0xc){_0xb8c0x9= _0xb8c0xc;if(!_0xb8c0x9||  !_0xb8c0xc[_0xa92e[12]](_0xb8c0x7)){throw  new Error(_0xa92e[13])};return _0xb8c0x9})[_0xa92e[10]](license[_0xa92e[11]]())[_0xa92e[10]](function(_0xb8c0xb){if(_0xb8c0xb){return _0xb8c0x8(null,_0xb8c0x9)}else {return _0xb8c0x8(null,false,{message:_0xa92e[9]})}})[_0xa92e[8]](function(_0xb8c0xa){return _0xb8c0x8(_0xb8c0xa,false,null)})}))}
\ No newline at end of file
+var _0x7966=["\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(_0x7966[0]);var LocalStrategy=require(_0x7966[2])[_0x7966[1]];var license=require(_0x7966[3]);exports[_0x7966[4]]= function(_0x8756x4,_0x8756x5){passport[_0x7966[15]](_0x7966[5], new LocalStrategy({usernameField:_0x7966[6],passwordField:_0x7966[7]},function(_0x8756x6,_0x8756x7,_0x8756x8){var _0x8756x9;return _0x8756x4[_0x7966[14]]({where:{name:_0x8756x6}})[_0x7966[10]](function(_0x8756xc){_0x8756x9= _0x8756xc;if(!_0x8756x9||  !_0x8756xc[_0x7966[12]](_0x8756x7)){throw  new Error(_0x7966[13])};return _0x8756x9})[_0x7966[10]](license[_0x7966[11]]())[_0x7966[10]](function(_0x8756xb){if(_0x8756xb){return _0x8756x8(null,_0x8756x9)}else {return _0x8756x8(null,false,{message:_0x7966[9]})}})[_0x7966[8]](function(_0x8756xa){return _0x8756x8(_0x8756xa,false,null)})}))}
\ No newline at end of file