From 9c4afa15079be9bb77c231dfd7b0f0ddbf58cdd5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 31 May 2022 12:40:38 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 3547f095..9feb0fa9 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -32,7 +32,7 @@ class BaseAuthedController extends BaseController { phpcommon\sendError(500, 'invalid session_id'); die(); } - if (!(getReqVal('c', '') == 'User' && getReqVal('c', '') == 'login')) { + if (!(getReqVal('c', '') == 'User' && getReqVal('a', '') == 'login')) { $r = $this->_getRedis($this->_getAccountId()); $sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId()); if (empty($sessionId)) { @@ -43,6 +43,7 @@ class BaseAuthedController extends BaseController { $_REQUEST )); phpcommon\sendError(1001, 'session expiration'); + die(); } } }