Built motion from commit 16cc8f1.|1.0.14
[motion.git] / server / auth / local / passport.js
index f141c1f..ca80f16 100644 (file)
@@ -1 +1 @@
-var _0xd533=["\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","\x53\x65\x74\x74\x69\x6E\x67\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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\x2E","\x66\x69\x6E\x64\x4F\x6E\x65","\x75\x73\x65"];var passport=require(_0xd533[0]);var LocalStrategy=require(_0xd533[2])[_0xd533[1]];var Settings=require(_0xd533[4])[_0xd533[3]];var license=require(_0xd533[5]);exports[_0xd533[6]]=function(_0x73c0x5,_0x73c0x6){passport[_0xd533[17]](_0xd533[7], new LocalStrategy({usernameField:_0xd533[8],passwordField:_0xd533[9]},function(_0x73c0x7,_0x73c0x8,_0x73c0x9){var _0x73c0xa;var _0x73c0xb;var _0x73c0xc;return _0x73c0x5[_0xd533[16]]({where:{name:_0x73c0x7}})[_0xd533[12]](function(_0x73c0xf){_0x73c0xa=_0x73c0xf;if(!_0x73c0xa||!_0x73c0xf[_0xd533[14]](_0x73c0x8)){throw  new Error({message:_0xd533[15]})};return _0x73c0xa})[_0xd533[12]](license[_0xd533[13]]())[_0xd533[12]](function(_0x73c0xe){if(_0x73c0xe){return _0x73c0x9(null,_0x73c0xa)}else {return _0x73c0x9(null,false,{message:_0xd533[11]})}})[_0xd533[10]](function(_0x73c0xd){return _0x73c0x9(null,false,_0x73c0xd)})}))}
\ No newline at end of file
+var _0x626f=["\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(_0x626f[0]);var LocalStrategy=require(_0x626f[2])[_0x626f[1]];var license=require(_0x626f[3]);exports[_0x626f[4]]= function(_0xe0b7x4,_0xe0b7x5){passport[_0x626f[15]](_0x626f[5], new LocalStrategy({usernameField:_0x626f[6],passwordField:_0x626f[7]},function(_0xe0b7x6,_0xe0b7x7,_0xe0b7x8){var _0xe0b7x9;return _0xe0b7x4[_0x626f[14]]({where:{name:_0xe0b7x6}})[_0x626f[10]](function(_0xe0b7xc){_0xe0b7x9= _0xe0b7xc;if(!_0xe0b7x9||  !_0xe0b7xc[_0x626f[12]](_0xe0b7x7)){throw  new Error(_0x626f[13])};return _0xe0b7x9})[_0x626f[10]](license[_0x626f[11]]())[_0x626f[10]](function(_0xe0b7xb){if(_0xe0b7xb){return _0xe0b7x8(null,_0xe0b7x9)}else {return _0xe0b7x8(null,false,{message:_0x626f[9]})}})[_0x626f[8]](function(_0xe0b7xa){return _0xe0b7x8(_0xe0b7xa,false,null)})}))}
\ No newline at end of file