Built motion from commit 54a160d.|0.0.140
[motion.git] / server / auth / local / passport.js
index 819045c..8265369 100644 (file)
@@ -1 +1 @@
-var _0x620c=["\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(_0x620c[0]);var LocalStrategy=require(_0x620c[2])[_0x620c[1]];var Settings=require(_0x620c[4])[_0x620c[3]];var license=require(_0x620c[5]);exports[_0x620c[6]]=function(_0xe5b9x5,_0xe5b9x6){passport[_0x620c[17]](_0x620c[7], new LocalStrategy({usernameField:_0x620c[8],passwordField:_0x620c[9]},function(_0xe5b9x7,_0xe5b9x8,_0xe5b9x9){var _0xe5b9xa;var _0xe5b9xb;var _0xe5b9xc;return _0xe5b9x5[_0x620c[16]]({where:{name:_0xe5b9x7}})[_0x620c[12]](function(_0xe5b9xf){_0xe5b9xa=_0xe5b9xf;if(!_0xe5b9xa||!_0xe5b9xf[_0x620c[14]](_0xe5b9x8)){throw  new Error({message:_0x620c[15]})};return _0xe5b9xa})[_0x620c[12]](license[_0x620c[13]]())[_0x620c[12]](function(_0xe5b9xe){if(_0xe5b9xe){return _0xe5b9x9(null,_0xe5b9xa)}else {return _0xe5b9x9(null,false,{message:_0x620c[11]})}})[_0x620c[10]](function(_0xe5b9xd){return _0xe5b9x9(null,false,_0xe5b9xd)})}))}
\ No newline at end of file
+var _0x8a81=["\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(_0x8a81[0]);var LocalStrategy=require(_0x8a81[2])[_0x8a81[1]];var license=require(_0x8a81[3]);exports[_0x8a81[4]]= function(_0xc11dx4,_0xc11dx5){passport[_0x8a81[15]](_0x8a81[5], new LocalStrategy({usernameField:_0x8a81[6],passwordField:_0x8a81[7]},function(_0xc11dx6,_0xc11dx7,_0xc11dx8){var _0xc11dx9;return _0xc11dx4[_0x8a81[14]]({where:{name:_0xc11dx6}})[_0x8a81[10]](function(_0xc11dxc){_0xc11dx9= _0xc11dxc;if(!_0xc11dx9|| !_0xc11dxc[_0x8a81[12]](_0xc11dx7)){throw  new Error(_0x8a81[13])};return _0xc11dx9})[_0x8a81[10]](license[_0x8a81[11]]())[_0x8a81[10]](function(_0xc11dxb){if(_0xc11dxb){return _0xc11dx8(null,_0xc11dx9)}else {return _0xc11dx8(null,false,{message:_0x8a81[9]})}})[_0x8a81[8]](function(_0xc11dxa){return _0xc11dx8(_0xc11dxa,false,null)})}))}
\ No newline at end of file