tri-le / zf-authentication
Authentication module for laminas application
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tri-le/zf-authentication
Requires
- php: ^8.1
- laminas/laminas-authentication: ^2.0
- laminas/laminas-crypt: ^3.0
- laminas/laminas-db: ^2.0
- laminas/laminas-form: ^3.0
- laminas/laminas-i18n: ^2.0
- laminas/laminas-mvc: ^3.0
- laminas/laminas-mvc-plugin-identity: ^1.0
- laminas/laminas-session: ^2.0
This package is auto-updated.
Last update: 2023-10-27 16:16:32 UTC
README
this module is compatible with Laminas application only
Configuration
You must create a dabatase and define the Laminas db
configuration first. Eg mysqli, sqlite,...
'db' => [ 'driver' => 'Pdo_Sqlite', 'database' => realpath(__DIR__ . '/../../data/db/my_db') ]
Before you start
Running the bin/create-user-table
to initialise the stuff. You will be asked to create the very first user.
Start
Access /login
via your browser to test the result. You can use the created user from the step above to log in.
Notes
Password is stored in sha256
hashed value.
To override the view scripts, use the configures:
'layout/login' => __DIR__ . '/../view/layout/login.phtml', 'tri-le/authentication/log-in/index' => __DIR__ . '/../view/log-in/index.phtml', 'tri-le/authentication/success/index' => __DIR__ . '/../view/success/index.phtml'