Skip to content

kaushalkishorejaiswal/Users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Created by Kaushal Kishore
Email : kaushal.rahuljaiswal@gmail.com
Website : http://www.kaushalkishore.com

Introduction

Zend Users is a user authentication module for Zend Framework 2, which provides all the users login and authentication process. Such as login, remember me, forgot password etc.

Functionality of the Users Module:

  • User Login Authentication
  • Change Password
  • Remember Me Functionality
  • Reset Password
  • Forgot Password
  • Forgot Password Mail Functionality

Installation

  • Clone the Users Module into your vendor folder
  • Enabling it in your application.config.phpfile.
  • Import the Users.sql file in your database, located in data folder of Users module
  • Copy the users.local.php.dist in your config/autoload folder
  • Rename it to users.local.php
  • Modify the settings of users.local.php according to you

Enable the module in application.config.php

<?php
return array(
    'modules' => array(
        // ...
        'Users',
    ),
    // ...
);

Routes of the Actions:

  • Login : /users
  • Login : /users/index
  • Logout : /users/logout
  • Forgot Password : /users/forgot-password
  • Reset Password : /users/reset-password
  • Change Password : /users/change-password

Database Table Installation:

CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(101) NOT NULL,
  `password` varchar(45) NOT NULL,
  `login_attempts` int(11) NOT NULL DEFAULT '0',
  `login_attempt_time` int(11) NOT NULL DEFAULT '0',
  `first_name` varchar(45) NOT NULL,
  `last_name` varchar(45) NOT NULL,
  `status` enum('Active','Inactive') NOT NULL DEFAULT 'Active',
  `last_signed_in` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) 

INSERT INTO users (id, email, password, login_attempts, login_attempt_time, first_name, last_name, status, last_signed_in) VALUES (1, 'kaushal.rahuljaiswal@gmail.com', 'd4cb903787695a544172af6f0af88fef583a81c8', 0, 0, '', '', 'Active', NULL);

Default Credentials

  • Email : kaushal.rahuljaiswal@gmail.com
  • Password : Kaushal@123

About

Users Module Zend Framework 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages