/bpluser

An user registration and authentication module for ZF3 based on saeven/zf3-circlical-user

Primary LanguagePHPApache License 2.0Apache-2.0

bpluser

An user registration, authentication and authorization module for Laminas-MVC based on saeven/zf3-circlical-user

Features

  • User Registration
  • Forgot password feature
  • View helpers
  • Laminas Developers Toolbar extention

Requirements

Check composer.json file for requirements.

Installation

  • Run following from project root directory
    $ composer require bishwopl/bpluser
  • Enable module in application.config.php
<?php
return [
    'modules' => [
        // ...
        'CirclicalUser',
        'BplUser',
    ],
    // ...
];
  • Follow configuration step
  • Create database using following command
    ./vendor/doctrine/doctrine-module/bin/doctrine-module orm:schema-tool:create

Configuration

bishwopl/bpluser & bishwopl/zf3-circlical-user

Copy config/bpluser.local.php.dist file to your configuration folder and remove .dist from its name. Module configuration required for bishwopl/zf3-circlical-user is also included in this config file so separate configuration for bishwopl/zf3-circlical-user is not necessary.

Options

Controller plugins

  • Change Password
    $this->bpluser()->changePassword(UserInterface $user, $newPassword);
  • Change Email
    $this->bpluser()->changeEmail(UserInterface $user, $newEmail);
  • Is Email in use
    $this->bpluser()->isEmailInUse($email);
  • Verify password
    $this->bpluser()->verifyPassword(UserInterface $user, $password);
  • Save Profile
    $this->bpluser()->saveProfile(UserInterface $user);
  • Can access action
    $this->bpluser()->isAllowedAction($controllerName, $action);

To do

  • Add Remember Me feature