1
This commit is contained in:
parent
a9a014dc8f
commit
9c4afa1507
@ -32,7 +32,7 @@ class BaseAuthedController extends BaseController {
|
|||||||
phpcommon\sendError(500, 'invalid session_id');
|
phpcommon\sendError(500, 'invalid session_id');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
if (!(getReqVal('c', '') == 'User' && getReqVal('c', '') == 'login')) {
|
if (!(getReqVal('c', '') == 'User' && getReqVal('a', '') == 'login')) {
|
||||||
$r = $this->_getRedis($this->_getAccountId());
|
$r = $this->_getRedis($this->_getAccountId());
|
||||||
$sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId());
|
$sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId());
|
||||||
if (empty($sessionId)) {
|
if (empty($sessionId)) {
|
||||||
@ -43,6 +43,7 @@ class BaseAuthedController extends BaseController {
|
|||||||
$_REQUEST
|
$_REQUEST
|
||||||
));
|
));
|
||||||
phpcommon\sendError(1001, 'session expiration');
|
phpcommon\sendError(1001, 'session expiration');
|
||||||
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user