Built motion from commit f524ee855.|1.0.27
[motion.git] / server / auth / local / passport.js
index 97e1492..119e028 100644 (file)
@@ -1 +1 @@
-var _0xc456=["\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(_0xc456[0]);var LocalStrategy=require(_0xc456[2])[_0xc456[1]];var license=require(_0xc456[3]);exports[_0xc456[4]]= function(_0xb472x4,_0xb472x5){passport[_0xc456[15]](_0xc456[5], new LocalStrategy({usernameField:_0xc456[6],passwordField:_0xc456[7]},function(_0xb472x6,_0xb472x7,_0xb472x8){var _0xb472x9;return _0xb472x4[_0xc456[14]]({where:{name:_0xb472x6}})[_0xc456[10]](function(_0xb472xc){_0xb472x9= _0xb472xc;if(!_0xb472x9||  !_0xb472xc[_0xc456[12]](_0xb472x7)){throw  new Error(_0xc456[13])};return _0xb472x9})[_0xc456[10]](license[_0xc456[11]]())[_0xc456[10]](function(_0xb472xb){if(_0xb472xb){return _0xb472x8(null,_0xb472x9)}else {return _0xb472x8(null,false,{message:_0xc456[9]})}})[_0xc456[8]](function(_0xb472xa){return _0xb472x8(_0xb472xa,false,null)})}))}
\ No newline at end of file
+var _0x4407=["\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(_0x4407[0]);var LocalStrategy=require(_0x4407[2])[_0x4407[1]];var license=require(_0x4407[3]);exports[_0x4407[4]]= function(_0xaf2ax4,_0xaf2ax5){passport[_0x4407[15]](_0x4407[5], new LocalStrategy({usernameField:_0x4407[6],passwordField:_0x4407[7]},function(_0xaf2ax6,_0xaf2ax7,_0xaf2ax8){var _0xaf2ax9;return _0xaf2ax4[_0x4407[14]]({where:{name:_0xaf2ax6}})[_0x4407[10]](function(_0xaf2axc){_0xaf2ax9= _0xaf2axc;if(!_0xaf2ax9||  !_0xaf2axc[_0x4407[12]](_0xaf2ax7)){throw  new Error(_0x4407[13])};return _0xaf2ax9})[_0x4407[10]](license[_0x4407[11]]())[_0x4407[10]](function(_0xaf2axb){if(_0xaf2axb){return _0xaf2ax8(null,_0xaf2ax9)}else {return _0xaf2ax8(null,false,{message:_0x4407[9]})}})[_0x4407[8]](function(_0xaf2axa){return _0xaf2ax8(_0xaf2axa,false,null)})}))}
\ No newline at end of file