Built motion from commit 4d2cf597c.|1.0.26
[motion.git] / server / auth / local / passport.js
index e1c0a9c..819ee66 100644 (file)
@@ -1 +1 @@
-var _0x19c4=["\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","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0x19c4[0]);var LocalStrategy=require(_0x19c4[2])[_0x19c4[1]];var Settings=require(_0x19c4[4])[_0x19c4[3]];var license=require(_0x19c4[5]);exports[_0x19c4[6]]= function(_0xb783x5,_0xb783x6){passport[_0x19c4[17]](_0x19c4[7], new LocalStrategy({usernameField:_0x19c4[8],passwordField:_0x19c4[9]},function(_0xb783x7,_0xb783x8,_0xb783x9){var _0xb783xa;var _0xb783xb;var _0xb783xc;return _0xb783x5[_0x19c4[16]]({where:{name:_0xb783x7}})[_0x19c4[12]](function(_0xb783xf){_0xb783xa= _0xb783xf;if(!_0xb783xa|| !_0xb783xf[_0x19c4[14]](_0xb783x8)){throw  new Error(_0x19c4[15])};return _0xb783xa})[_0x19c4[12]](license[_0x19c4[13]]())[_0x19c4[12]](function(_0xb783xe){if(_0xb783xe){return _0xb783x9(null,_0xb783xa)}else {return _0xb783x9(null,false,{message:_0x19c4[11]})}})[_0x19c4[10]](function(_0xb783xd){return _0xb783x9(_0xb783xd,false,null)})}))}
\ No newline at end of file
+var _0xa3c3=["\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(_0xa3c3[0]);var LocalStrategy=require(_0xa3c3[2])[_0xa3c3[1]];var license=require(_0xa3c3[3]);exports[_0xa3c3[4]]= function(_0x33b1x4,_0x33b1x5){passport[_0xa3c3[15]](_0xa3c3[5], new LocalStrategy({usernameField:_0xa3c3[6],passwordField:_0xa3c3[7]},function(_0x33b1x6,_0x33b1x7,_0x33b1x8){var _0x33b1x9;return _0x33b1x4[_0xa3c3[14]]({where:{name:_0x33b1x6}})[_0xa3c3[10]](function(_0x33b1xc){_0x33b1x9= _0x33b1xc;if(!_0x33b1x9||  !_0x33b1xc[_0xa3c3[12]](_0x33b1x7)){throw  new Error(_0xa3c3[13])};return _0x33b1x9})[_0xa3c3[10]](license[_0xa3c3[11]]())[_0xa3c3[10]](function(_0x33b1xb){if(_0x33b1xb){return _0x33b1x8(null,_0x33b1x9)}else {return _0x33b1x8(null,false,{message:_0xa3c3[9]})}})[_0xa3c3[8]](function(_0x33b1xa){return _0x33b1x8(_0x33b1xa,false,null)})}))}
\ No newline at end of file