forked from mirror/MCSManager
删除 - Debug 辅助代码
This commit is contained in:
parent
5bcca1a53c
commit
5bf52f94bd
@ -10,7 +10,6 @@ class ModelManager {
|
||||
this._mineself[key] = value;
|
||||
this.len++;
|
||||
}
|
||||
console.log("MINE:" + this.len)
|
||||
}
|
||||
del(key) {
|
||||
if (key) {
|
||||
@ -19,7 +18,6 @@ class ModelManager {
|
||||
delete this._mineself[key];
|
||||
this.len--;
|
||||
}
|
||||
console.log("MINE:" + this.len)
|
||||
}
|
||||
|
||||
get(key) {
|
||||
|
@ -15,7 +15,7 @@ function getRandToken() {
|
||||
router.get('/', function (req, res) {
|
||||
let username = req.session['username'] || undefined;
|
||||
//ajax 会受到浏览器跨域限制,姑不能对其进行csrf攻击获取token,尽管它可伪造。
|
||||
if (req.xhr || true) {
|
||||
if (req.xhr) {
|
||||
|
||||
if (!username || !loginedContainer.isLogined(req.sessionID)) {
|
||||
MCSERVER.log('[ Token ]', '未登录用户 ', username, ' 请求更新令牌 | 已经阻止');
|
||||
|
@ -72,7 +72,7 @@ router.post('/login', function (req, res) {
|
||||
|
||||
//判断是否有 ws 正在连接
|
||||
if (OnlyLoginCheck(req.sessionID)) {
|
||||
console.log("FUCK");
|
||||
response.returnMsg(res, 'login/check', "您已经登录过账号了,不可再进行登录,请先退出原账号!");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user