alcatraz / security
安全Alcatraz框架。
1.1.0
2020-04-15 03:46 UTC
Requires
- alcatraz/annotation: ^1.1.0
- alcatraz/kernel: ^1.1.0
- alcatraz/owl: ^1.1.0
- alcatraz/session: ^1.1.0
This package is auto-updated.
Last update: 2024-09-15 13:09:54 UTC
README
安全Alcatraz框架
CREATE TABLE users (
id int primary key auto_increment,
login varchar(100) unique not null,
pass varchar(100) not null,
lastAccess timestamp,
activated tinyint(1) not null default 0
);
之后
use Alcatraz\Owl\Generator\ClassGenerator; $generator = new ClassGenerator(); $generator->run();
将路径/to/project/Application/Entities/Generator下的Users.php复制到路径/to/project/Application/Entities
打开路径/to/project/vendor/alcatraz/kernel/Alcatraz/Kernel/Controller.php文件,并在方法__construct()中粘贴代码
use Alcatraz\Security\Security; class Controller { function __construct(){ Security::verifySession(); } ... [rest of the code]