2017 © Pedro Peláez
 

library san-auth-with-db-save-handler

ZF2 Module that utilize AuthenticationService with Db Save Handler.

image

san/san-auth-with-db-save-handler

ZF2 Module that utilize AuthenticationService with Db Save Handler.

  • Tuesday, October 22, 2013
  • by samsonasik
  • Repository
  • 2 Watchers
  • 1 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SanAuthWithDbSaveHandler

ZF2 Module that utilize AuthenticationService with Db Save Handler., (*1)

Installation

import following sql to your db., (*2)

-- table to save session data....
CREATE TABLE IF NOT EXISTS `session` (
  `id` char(32) NOT NULL DEFAULT '',
  `name` char(32) NOT NULL DEFAULT '',
  `modified` int(11) DEFAULT NULL,
  `lifetime` int(11) DEFAULT NULL,
  `data` text,
  PRIMARY KEY (`id`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- users table
CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

-- users data with password = md5('admin')
INSERT INTO `users` (`id`, `username`, `password`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3');

Login access : http://zf2app/auth with, (*3)

username : admin
password : admin

The Versions

22/10 2013

dev-master

9999999-dev https://github.com/samsonasik/SanAuthWithDbSaveHandler

ZF2 Module that utilize AuthenticationService with Db Save Handler.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

auth zf2 db