1. 首页
  2. 考试认证
  3. 其它
  4. simple hash authenticator用于Nette框架的简单哈希验证器

simple hash authenticator用于Nette框架的简单哈希验证器

上传者: 2024-12-08 23:37:36上传 ZIP文件 6.62KB 热度 2次

简单哈希验证器 安装: 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);

```

或注册扩展。

下载地址
用户评论