소스 검색

Merge branch 'release' of gitlab.com:Isleward/isleward into release

tags/v0.10.6.3
Shaun 2 년 전
부모
커밋
f452e80578
1개의 변경된 파일0개의 추가작업 그리고 46개의 파일을 삭제
  1. +0
    -46
      src/server/components/auth.js

+ 0
- 46
src/server/components/auth.js 파일 보기

@@ -288,27 +288,12 @@ module.exports = {
return;
}

if (username === 'bbb' || username === 'aaa') {
await io.setAsync({
key: new Date(),
table: 'error',
value: username + '1'
});
}

const emBeforeLogin = {
obj: this.obj,
success: true,
msg: null
};
await eventEmitter.emit('onBeforeLogin', emBeforeLogin);
if (username === 'bbb' || username === 'aaa') {
await io.setAsync({
key: new Date(),
table: 'error',
value: username + '2'
});
}
if (!emBeforeLogin.success) {
msg.callback(emBeforeLogin.msg);

@@ -317,13 +302,6 @@ module.exports = {
this.username = username;
await cons.logOut(this.obj);
if (username === 'bbb' || username === 'aaa') {
await io.setAsync({
key: new Date(),
table: 'error',
value: username + '3'
});
}

this.initTracker();

@@ -336,14 +314,6 @@ module.exports = {
level: 0
};

if (username === 'bbb' || username === 'aaa') {
await io.setAsync({
key: new Date(),
table: 'error',
value: username + '4'
});
}

const msgAccountInfo = {
username,
accountInfo
@@ -351,24 +321,8 @@ module.exports = {

await eventEmitter.emit('onBeforeGetAccountInfo', msgAccountInfo);

if (username === 'bbb' || username === 'aaa') {
await io.setAsync({
key: new Date(),
table: 'error',
value: username + '5'
});
}

await eventEmitter.emit('onAfterLogin', { username });

if (username === 'bbb' || username === 'aaa') {
await io.setAsync({
key: new Date(),
table: 'error',
value: username + '6'
});
}

this.accountInfo = msgAccountInfo.accountInfo;

msg.callback();


불러오는 중...
취소
저장