...
|
...
|
@@ -91,7 +91,7 @@ passport.use(new LocalStrategy({ |
|
|
cache.set(accountKey, accountTimes, 1800);
|
|
|
cache.set(ipKey, ipTimes, 3600);
|
|
|
|
|
|
//再次校验
|
|
|
// 再次校验
|
|
|
if (ipTimes >= 100) {
|
|
|
done('您尝试的次数过多,账号已被暂时锁定,请稍后再试', null);
|
|
|
} else if (accountTimes >= 10) {
|
...
|
...
|
@@ -156,4 +156,4 @@ passport.use('alipay', new AlipayStrategy({ |
|
|
callbackURL: `${siteUrl}/passport/login/alipay/callback`
|
|
|
}), (profile, done) => {
|
|
|
done(null, profile);
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
}); |
...
|
...
|
|