增加response的事件机制;为login增加事件;发布新版本

This commit is contained in:
2023-09-23 14:50:24 +08:00
parent e176ed19e5
commit 08c340a2bf
6 changed files with 90 additions and 16 deletions

View File

@@ -36,6 +36,10 @@ class Login extends AdminController
*/
public function index()
{
event_response('AdminLoginIndex', [
'controller' => $this,
]);
$captcha = Env::get('adminsystem.captcha', 1);
if ($this->request->isPost()) {
$post = $this->request->post();