This is an example application for testing login using the standard Zend AuthenticationService, slightly customised Zend\Authentication\Storage for session storage and Zend\Authentication\Adapter\DbTable for DB auth.
The code is based from samsonasik's blog, so all credit to him. Recommend you read this for details.
git clone https://github.com/stevenalexander/zf2-example-login.gitcomposer installto get dependencies- Create db with table
users, containing columnsusernameandpassword, populate with test user rows - Update config/autoload/global.php and config/autoload/local.php with your db connection details
- Go to /auth to login