fix: 修复高危接口访问与会话安全问题
This commit is contained in:
1 parent
ca4a5f4e4e
commit
8523e7142c
12 files changed
+161
-36
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app;
|
||||
|
||||
/**
|
||||
* Shared base controller for utility endpoints that must never be exposed to
|
||||
* student or anonymous sessions.
|
||||
*/
|
||||
abstract class AdminToolsBase extends ToolsBase
|
||||
{
|
||||
protected $middleware = [
|
||||
'online',
|
||||
'login',
|
||||
'admin_only',
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user