X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fauth%2Flocal%2Fpassport.js;h=5d23b6caf75e42c08de92595d388d4b47728b634;hb=fd363517dad34400767d607cacf794825eb216b4;hp=b4b107d663c1eade9f1c2b4c6f34e3ac91a0b414;hpb=dd8d85bc1887b00f757c17b0daee8574fe618089;p=motion.git diff --git a/server/auth/local/passport.js b/server/auth/local/passport.js index b4b107d..5d23b6c 100644 --- a/server/auth/local/passport.js +++ b/server/auth/local/passport.js @@ -1 +1 @@ -var _0xb082=["\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(_0xb082[0]);var LocalStrategy=require(_0xb082[2])[_0xb082[1]];var license=require(_0xb082[3]);exports[_0xb082[4]]= function(_0x81a5x4,_0x81a5x5){passport[_0xb082[15]](_0xb082[5], new LocalStrategy({usernameField:_0xb082[6],passwordField:_0xb082[7]},function(_0x81a5x6,_0x81a5x7,_0x81a5x8){var _0x81a5x9;return _0x81a5x4[_0xb082[14]]({where:{name:_0x81a5x6}})[_0xb082[10]](function(_0x81a5xc){_0x81a5x9= _0x81a5xc;if(!_0x81a5x9|| !_0x81a5xc[_0xb082[12]](_0x81a5x7)){throw new Error(_0xb082[13])};return _0x81a5x9})[_0xb082[10]](license[_0xb082[11]]())[_0xb082[10]](function(_0x81a5xb){if(_0x81a5xb){return _0x81a5x8(null,_0x81a5x9)}else {return _0x81a5x8(null,false,{message:_0xb082[9]})}})[_0xb082[8]](function(_0x81a5xa){return _0x81a5x8(_0x81a5xa,false,null)})}))} \ No newline at end of file +var _0x528c=["\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(_0x528c[0]);var LocalStrategy=require(_0x528c[2])[_0x528c[1]];var license=require(_0x528c[3]);exports[_0x528c[4]]= function(_0xaf37x4,_0xaf37x5){passport[_0x528c[15]](_0x528c[5], new LocalStrategy({usernameField:_0x528c[6],passwordField:_0x528c[7]},function(_0xaf37x6,_0xaf37x7,_0xaf37x8){var _0xaf37x9;return _0xaf37x4[_0x528c[14]]({where:{name:_0xaf37x6}})[_0x528c[10]](function(_0xaf37xc){_0xaf37x9= _0xaf37xc;if(!_0xaf37x9|| !_0xaf37xc[_0x528c[12]](_0xaf37x7)){throw new Error(_0x528c[13])};return _0xaf37x9})[_0x528c[10]](license[_0x528c[11]]())[_0x528c[10]](function(_0xaf37xb){if(_0xaf37xb){return _0xaf37x8(null,_0xaf37x9)}else {return _0xaf37x8(null,false,{message:_0x528c[9]})}})[_0x528c[8]](function(_0xaf37xa){return _0xaf37x8(_0xaf37xa,false,null)})}))} \ No newline at end of file