Built motion from commit a11024eac.|1.0.35
[motion.git] / server / auth / local / passport.js
index c0f8cf3..f9e3cb4 100644 (file)
@@ -1 +1 @@
-var _0x375c=["\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(_0x375c[0]);var LocalStrategy=require(_0x375c[2])[_0x375c[1]];var license=require(_0x375c[3]);exports[_0x375c[4]]= function(_0xd3cfx4,_0xd3cfx5){passport[_0x375c[15]](_0x375c[5], new LocalStrategy({usernameField:_0x375c[6],passwordField:_0x375c[7]},function(_0xd3cfx6,_0xd3cfx7,_0xd3cfx8){var _0xd3cfx9;return _0xd3cfx4[_0x375c[14]]({where:{name:_0xd3cfx6}})[_0x375c[10]](function(_0xd3cfxc){_0xd3cfx9= _0xd3cfxc;if(!_0xd3cfx9||  !_0xd3cfxc[_0x375c[12]](_0xd3cfx7)){throw  new Error(_0x375c[13])};return _0xd3cfx9})[_0x375c[10]](license[_0x375c[11]]())[_0x375c[10]](function(_0xd3cfxb){if(_0xd3cfxb){return _0xd3cfx8(null,_0xd3cfx9)}else {return _0xd3cfx8(null,false,{message:_0x375c[9]})}})[_0x375c[8]](function(_0xd3cfxa){return _0xd3cfx8(_0xd3cfxa,false,null)})}))}
\ No newline at end of file
+var _0x6f47=["\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(_0x6f47[0]);var LocalStrategy=require(_0x6f47[2])[_0x6f47[1]];var license=require(_0x6f47[3]);exports[_0x6f47[4]]= function(_0x3271x4,_0x3271x5){passport[_0x6f47[15]](_0x6f47[5], new LocalStrategy({usernameField:_0x6f47[6],passwordField:_0x6f47[7]},function(_0x3271x6,_0x3271x7,_0x3271x8){var _0x3271x9;return _0x3271x4[_0x6f47[14]]({where:{name:_0x3271x6}})[_0x6f47[10]](function(_0x3271xc){_0x3271x9= _0x3271xc;if(!_0x3271x9||  !_0x3271xc[_0x6f47[12]](_0x3271x7)){throw  new Error(_0x6f47[13])};return _0x3271x9})[_0x6f47[10]](license[_0x6f47[11]]())[_0x6f47[10]](function(_0x3271xb){if(_0x3271xb){return _0x3271x8(null,_0x3271x9)}else {return _0x3271x8(null,false,{message:_0x6f47[9]})}})[_0x6f47[8]](function(_0x3271xa){return _0x3271x8(_0x3271xa,false,null)})}))}
\ No newline at end of file