...
|
...
|
@@ -15,7 +15,7 @@ const AlipayStrategy = require('./passport-alipay').Strategy; |
|
|
|
|
|
const md5 = require('md5');
|
|
|
|
|
|
const loginService = require('./login-service');
|
|
|
const LoginService = require('./login-service');
|
|
|
|
|
|
const config = global.yoho.config;
|
|
|
const helpers = global.yoho.helpers;
|
...
|
...
|
@@ -76,7 +76,7 @@ passport.use(new LocalStrategy({ |
|
|
if (accountTimes >= 10) {
|
|
|
done({message: '您的账号已被暂时锁定,请30分钟后再试'}, null);
|
|
|
} else {
|
|
|
return loginService.signin(area, username, password, shoppingKey).then((result) => {
|
|
|
return LoginService.signinAsync(area, username, password, shoppingKey).then((result) => {
|
|
|
if (result.code && result.code === 200 && result.data.uid) {
|
|
|
cache.del(errorLoginKey);
|
|
|
|
...
|
...
|
|