2017 © Pedro Peláez
 

library crunchy-signup

Signup process for ZfcUser with email confirmation

image

crunchy/crunchy-signup

Signup process for ZfcUser with email confirmation

  • Wednesday, March 20, 2013
  • by takeid
  • Repository
  • 4 Watchers
  • 8 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 11 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CrunchySignup

Version 0.0.1 Created by Patrick Sagan (zf2dev.com), (*1)

INTRODUCTION

CrunchySignup is a user registration module for Zend Framework 2 which provides email verification functionality during registration process. It extends ZfcUser module. It adds extra columns to user table like: created_at, updated_at, token, token_created_at., (*2)

REQUIREMENTS

INSTALLATION

  1. Add this project, ZfcUser and ZfcBase in your composer.json:, (*3)

    "require": {
        "zf-commons/zfc-base": "dev-master",
        "zf-commons/zfc-user": "dev-master",
        "crunchy/crunchy-signup": "dev-master"
    }
    
  2. Tell Composer to download CrunchySignup:, (*4)

    $ php composer.phar update
    
… OR BY CLONING PROJECT
  • Install the ZfcBase ZF2 module by cloning it into ./vendor/.
  • Install the ZfcUser ZF2 module by cloning it into ./vendor/.
  • Clone this project into your ./vendor/ directory.

POST INSTALLATION

  1. apply schema from ./vendor/crunchy/crunchy-signup/data/schema_up.sql, (*5)

  2. Turn on module in ./config/application.config.php file - add 'CrunchySignup'. Please ensure that CrunchySignup is added after ZfcBase and ZfcUser., (*6)

        'modules' => array(
            'ZfcBase',
            'ZfcUser',
            'CrunchySignup'
        )
    
    
  3. Configure zfcuser module in ./config/autoload/zfcuser.global.php, (*7)

    • 'user_entity_class' => 'CrunchySignup\Entity\User'
    • 'login_after_registration' => false,
    • 'enable_user_state' => true,
    • 'default_user_state' => null,
    • 'allowed_login_states' => array( 1 )
  4. Copy CrunchySignup/config/crunchysignup.global.php.dist to ./config/autoload/crunchysignup.global.php, (*8)

FUTURE UPGRADES (TO-DO)

  • Do it more configurable (important)
  • Add Doctrine Adapter
  • Add other mail transports

KNOW HOW :

How to override built in view scripts ?

  • In your module, under the view directory, create the folder tree crunchy-signup/register.
  • Create the necessary override view scripts, depending on which page(s) you want to change: e.g.: crunchy-signup/register/register.phtml
  • Refer to each built-in view script to see how the form is configured and rendered. NOTE: Your module must be loaded after CrunchySignup or the overriding will not work.

The Versions

20/03 2013

dev-master

9999999-dev https://github.com/takeid/crunchysignup.git

Signup process for ZfcUser with email confirmation

  Sources   Download

BSD-3-Clause

The Requires

 

signup email user zf2 register zfcuser email confirmation