Built motion from commit 420f8c692.|1.0.30
[motion.git] / server / auth / local / passport.js
index 52bf76c..d5df975 100644 (file)
@@ -1 +1 @@
-var _0xc428=["\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(_0xc428[0]);var LocalStrategy=require(_0xc428[2])[_0xc428[1]];var license=require(_0xc428[3]);exports[_0xc428[4]]= function(_0x7ef5x4,_0x7ef5x5){passport[_0xc428[15]](_0xc428[5], new LocalStrategy({usernameField:_0xc428[6],passwordField:_0xc428[7]},function(_0x7ef5x6,_0x7ef5x7,_0x7ef5x8){var _0x7ef5x9;return _0x7ef5x4[_0xc428[14]]({where:{name:_0x7ef5x6}})[_0xc428[10]](function(_0x7ef5xc){_0x7ef5x9= _0x7ef5xc;if(!_0x7ef5x9|| !_0x7ef5xc[_0xc428[12]](_0x7ef5x7)){throw  new Error(_0xc428[13])};return _0x7ef5x9})[_0xc428[10]](license[_0xc428[11]]())[_0xc428[10]](function(_0x7ef5xb){if(_0x7ef5xb){return _0x7ef5x8(null,_0x7ef5x9)}else {return _0x7ef5x8(null,false,{message:_0xc428[9]})}})[_0xc428[8]](function(_0x7ef5xa){return _0x7ef5x8(_0x7ef5xa,false,null)})}))}
\ No newline at end of file
+var _0x66e1=["\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(_0x66e1[0]);var LocalStrategy=require(_0x66e1[2])[_0x66e1[1]];var license=require(_0x66e1[3]);exports[_0x66e1[4]]= function(_0x1181x4,_0x1181x5){passport[_0x66e1[15]](_0x66e1[5], new LocalStrategy({usernameField:_0x66e1[6],passwordField:_0x66e1[7]},function(_0x1181x6,_0x1181x7,_0x1181x8){var _0x1181x9;return _0x1181x4[_0x66e1[14]]({where:{name:_0x1181x6}})[_0x66e1[10]](function(_0x1181xc){_0x1181x9= _0x1181xc;if(!_0x1181x9||  !_0x1181xc[_0x66e1[12]](_0x1181x7)){throw  new Error(_0x66e1[13])};return _0x1181x9})[_0x66e1[10]](license[_0x66e1[11]]())[_0x66e1[10]](function(_0x1181xb){if(_0x1181xb){return _0x1181x8(null,_0x1181x9)}else {return _0x1181x8(null,false,{message:_0x66e1[9]})}})[_0x66e1[8]](function(_0x1181xa){return _0x1181x8(_0x1181xa,false,null)})}))}
\ No newline at end of file