simple hash authenticator用于Nette框架的简单哈希验证器
简单哈希验证器 安装: composer require nella/simple-hash-authenticator
用法:
```php
$authenticator = new Nella\SimpleHashAuthenticator(
array(
'demo' => '$2y$10$l5cjVRLvK2mjm6hzj8.s8.yjXmtO0Eio0JNt.JwAbZccndN9m1IVi', // hash of 'test'
),
array(
'demo' => array('admin'),
)
);
/* @var NetteSecurityUser $user /
$user->setAuthenticator($authenticator);
```
或注册扩展。
下载地址
用户评论