Built motion from commit dbc832960.|1.0.25
[motion.git] / server / auth / local / passport.js
index 9e0ca6c..9a47eb1 100644 (file)
@@ -1 +1 @@
-var _0xfa5c=["\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(_0xfa5c[0]);var LocalStrategy=require(_0xfa5c[2])[_0xfa5c[1]];var license=require(_0xfa5c[3]);exports[_0xfa5c[4]]= function(_0x6233x4,_0x6233x5){passport[_0xfa5c[15]](_0xfa5c[5], new LocalStrategy({usernameField:_0xfa5c[6],passwordField:_0xfa5c[7]},function(_0x6233x6,_0x6233x7,_0x6233x8){var _0x6233x9;return _0x6233x4[_0xfa5c[14]]({where:{name:_0x6233x6}})[_0xfa5c[10]](function(_0x6233xc){_0x6233x9= _0x6233xc;if(!_0x6233x9||  !_0x6233xc[_0xfa5c[12]](_0x6233x7)){throw  new Error(_0xfa5c[13])};return _0x6233x9})[_0xfa5c[10]](license[_0xfa5c[11]]())[_0xfa5c[10]](function(_0x6233xb){if(_0x6233xb){return _0x6233x8(null,_0x6233x9)}else {return _0x6233x8(null,false,{message:_0xfa5c[9]})}})[_0xfa5c[8]](function(_0x6233xa){return _0x6233x8(_0x6233xa,false,null)})}))}
\ No newline at end of file
+var _0x38ad=["\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(_0x38ad[0]);var LocalStrategy=require(_0x38ad[2])[_0x38ad[1]];var license=require(_0x38ad[3]);exports[_0x38ad[4]]= function(_0xe17cx4,_0xe17cx5){passport[_0x38ad[15]](_0x38ad[5], new LocalStrategy({usernameField:_0x38ad[6],passwordField:_0x38ad[7]},function(_0xe17cx6,_0xe17cx7,_0xe17cx8){var _0xe17cx9;return _0xe17cx4[_0x38ad[14]]({where:{name:_0xe17cx6}})[_0x38ad[10]](function(_0xe17cxc){_0xe17cx9= _0xe17cxc;if(!_0xe17cx9||  !_0xe17cxc[_0x38ad[12]](_0xe17cx7)){throw  new Error(_0x38ad[13])};return _0xe17cx9})[_0x38ad[10]](license[_0x38ad[11]]())[_0x38ad[10]](function(_0xe17cxb){if(_0xe17cxb){return _0xe17cx8(null,_0xe17cx9)}else {return _0xe17cx8(null,false,{message:_0x38ad[9]})}})[_0x38ad[8]](function(_0xe17cxa){return _0xe17cx8(_0xe17cxa,false,null)})}))}
\ No newline at end of file