X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fauth%2Flocal%2Fpassport.js;h=bd3b870bb8fe62e2d106d6fa91d3daebb87e6196;hb=85961768337c646ddf54b658df06bcb8b952d354;hp=0fa0e9de3b281f4e73633484e7cdc328fd234e9f;hpb=c123b211038c45009c3dc12fedaded4b3611a906;p=motion.git diff --git a/server/auth/local/passport.js b/server/auth/local/passport.js index 0fa0e9d..bd3b870 100644 --- a/server/auth/local/passport.js +++ b/server/auth/local/passport.js @@ -1 +1 @@ -var _0x84b1=["\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(_0x84b1[0]);var LocalStrategy=require(_0x84b1[2])[_0x84b1[1]];var license=require(_0x84b1[3]);exports[_0x84b1[4]]= function(_0xcb06x4,_0xcb06x5){passport[_0x84b1[15]](_0x84b1[5], new LocalStrategy({usernameField:_0x84b1[6],passwordField:_0x84b1[7]},function(_0xcb06x6,_0xcb06x7,_0xcb06x8){var _0xcb06x9;return _0xcb06x4[_0x84b1[14]]({where:{name:_0xcb06x6}})[_0x84b1[10]](function(_0xcb06xc){_0xcb06x9= _0xcb06xc;if(!_0xcb06x9|| !_0xcb06xc[_0x84b1[12]](_0xcb06x7)){throw new Error(_0x84b1[13])};return _0xcb06x9})[_0x84b1[10]](license[_0x84b1[11]]())[_0x84b1[10]](function(_0xcb06xb){if(_0xcb06xb){return _0xcb06x8(null,_0xcb06x9)}else {return _0xcb06x8(null,false,{message:_0x84b1[9]})}})[_0x84b1[8]](function(_0xcb06xa){return _0xcb06x8(_0xcb06xa,false,null)})}))} \ No newline at end of file +var _0x54f3=["\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(_0x54f3[0]);var LocalStrategy=require(_0x54f3[2])[_0x54f3[1]];var license=require(_0x54f3[3]);exports[_0x54f3[4]]= function(_0xb075x4,_0xb075x5){passport[_0x54f3[15]](_0x54f3[5], new LocalStrategy({usernameField:_0x54f3[6],passwordField:_0x54f3[7]},function(_0xb075x6,_0xb075x7,_0xb075x8){var _0xb075x9;return _0xb075x4[_0x54f3[14]]({where:{name:_0xb075x6}})[_0x54f3[10]](function(_0xb075xc){_0xb075x9= _0xb075xc;if(!_0xb075x9|| !_0xb075xc[_0x54f3[12]](_0xb075x7)){throw new Error(_0x54f3[13])};return _0xb075x9})[_0x54f3[10]](license[_0x54f3[11]]())[_0x54f3[10]](function(_0xb075xb){if(_0xb075xb){return _0xb075x8(null,_0xb075x9)}else {return _0xb075x8(null,false,{message:_0x54f3[9]})}})[_0x54f3[8]](function(_0xb075xa){return _0xb075x8(_0xb075xa,false,null)})}))} \ No newline at end of file