5c19d1fb37b48b664873eb577e494bd1106d6684
[motion.git] / server / auth / local / passport.js
1 var _0xa8ba=["\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(_0xa8ba[0]);var LocalStrategy=require(_0xa8ba[2])[_0xa8ba[1]];var Settings=require(_0xa8ba[4])[_0xa8ba[3]];var license=require(_0xa8ba[5]);exports[_0xa8ba[6]]=function(_0x9429x5,_0x9429x6){passport[_0xa8ba[17]](_0xa8ba[7], new LocalStrategy({usernameField:_0xa8ba[8],passwordField:_0xa8ba[9]},function(_0x9429x7,_0x9429x8,_0x9429x9){var _0x9429xa;var _0x9429xb;var _0x9429xc;return _0x9429x5[_0xa8ba[16]]({where:{name:_0x9429x7}})[_0xa8ba[12]](function(_0x9429xf){_0x9429xa=_0x9429xf;if(!_0x9429xa||!_0x9429xf[_0xa8ba[14]](_0x9429x8)){throw  new Error({message:_0xa8ba[15]})};return _0x9429xa})[_0xa8ba[12]](license[_0xa8ba[13]]())[_0xa8ba[12]](function(_0x9429xe){if(_0x9429xe){return _0x9429x9(null,_0x9429xa)}else {return _0x9429x9(null,false,{message:_0xa8ba[11]})}})[_0xa8ba[10]](function(_0x9429xd){return _0x9429x9(null,false,_0x9429xd)})}))}