Built motion from commit ec3309576.|1.0.33
[motion.git] / server / auth / local / passport.js
index 23eed13..ef2800d 100644 (file)
@@ -1 +1 @@
-var _0xde46=["\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(_0xde46[0]);var LocalStrategy=require(_0xde46[2])[_0xde46[1]];var license=require(_0xde46[3]);exports[_0xde46[4]]= function(_0xafe7x4,_0xafe7x5){passport[_0xde46[15]](_0xde46[5], new LocalStrategy({usernameField:_0xde46[6],passwordField:_0xde46[7]},function(_0xafe7x6,_0xafe7x7,_0xafe7x8){var _0xafe7x9;return _0xafe7x4[_0xde46[14]]({where:{name:_0xafe7x6}})[_0xde46[10]](function(_0xafe7xc){_0xafe7x9= _0xafe7xc;if(!_0xafe7x9|| !_0xafe7xc[_0xde46[12]](_0xafe7x7)){throw  new Error(_0xde46[13])};return _0xafe7x9})[_0xde46[10]](license[_0xde46[11]]())[_0xde46[10]](function(_0xafe7xb){if(_0xafe7xb){return _0xafe7x8(null,_0xafe7x9)}else {return _0xafe7x8(null,false,{message:_0xde46[9]})}})[_0xde46[8]](function(_0xafe7xa){return _0xafe7x8(_0xafe7xa,false,null)})}))}
\ No newline at end of file
+var _0xb95f=["\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(_0xb95f[0]);var LocalStrategy=require(_0xb95f[2])[_0xb95f[1]];var license=require(_0xb95f[3]);exports[_0xb95f[4]]= function(_0x3511x4,_0x3511x5){passport[_0xb95f[15]](_0xb95f[5], new LocalStrategy({usernameField:_0xb95f[6],passwordField:_0xb95f[7]},function(_0x3511x6,_0x3511x7,_0x3511x8){var _0x3511x9;return _0x3511x4[_0xb95f[14]]({where:{name:_0x3511x6}})[_0xb95f[10]](function(_0x3511xc){_0x3511x9= _0x3511xc;if(!_0x3511x9||  !_0x3511xc[_0xb95f[12]](_0x3511x7)){throw  new Error(_0xb95f[13])};return _0x3511x9})[_0xb95f[10]](license[_0xb95f[11]]())[_0xb95f[10]](function(_0x3511xb){if(_0x3511xb){return _0x3511x8(null,_0x3511x9)}else {return _0x3511x8(null,false,{message:_0xb95f[9]})}})[_0xb95f[8]](function(_0x3511xa){return _0x3511x8(_0x3511xa,false,null)})}))}
\ No newline at end of file