nella / simple-hash-authenticator
This package is abandoned and no longer maintained.
No replacement package was suggested.
Simple Hash Authenticator for Nette Framework
v1.0.1
2014-10-05 13:54 UTC
Requires
- php: >=5.3.7
- nette/security: ~2.2,<2.3.0
Requires (Dev)
- jakub-onderka/php-console-highlighter: ~0.3.1
- jakub-onderka/php-parallel-lint: ~0.8.0
- nette/nette: ~2.2,<2.3.0
- nette/tester: ~1.3.0
Suggests
- nette/nette: for DI extension
This package is auto-updated.
Last update: 2020-12-06 16:06:44 UTC
README
Installation
composer require nella/simple-hash-authenticator
Usage
$authenticator = new \Nella\SimpleHashAuthenticator\Authenticator(array( 'demo' => '$2y$10$l5cjVRLvK2mjm6hzj8.s8.yjXmtO0Eio0JNt.JwAbZccndN9m1IVi', // hash of 'test' ), array( 'demo' => array( 'admin' ), )); /** @var \Nette\Security\User $user */ $user->setAuthenticator($authenticator);
or register extension
extensions: authenticator: Nella\SimpleHashAuthenticator\Extension authenticator: users: demo: password: '$2y$10$l5cjVRLvK2mjm6hzj8.s8.yjXmtO0Eio0JNt.JwAbZccndN9m1IVi' roles: - admin # or without roles authenticator: users: demo: '$2y$10$l5cjVRLvK2mjm6hzj8.s8.yjXmtO0Eio0JNt.JwAbZccndN9m1IVi'
For hash generator:
authenticator: router: @router # or your router service name
and go to http://yourweb.local/authenticator
License
Simple hash authenticator for Nette Framework is licensed under the MIT License - see the LICENSE file for details