2017 © Pedro Peláez
 

yii2-extension yii2-accounts

User, manage, login and profile module for yii2 framework

image

cakebake/yii2-accounts

User, manage, login and profile module for yii2 framework

  • Tuesday, February 24, 2015
  • by cakebake
  • Repository
  • 1 Watchers
  • 4 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

yii2-accounts (!this plugin is not currently developed!)

User, manage, login and profile module for yii2 framework, (*1)

Pre-Installation

If you do not have Composer, you may install it by following the instructions at getcomposer.org., (*2)

You can then install the package using the following command:, (*3)

php composer.phar require --prefer-dist cakebake/yii2-accounts "dev-master"

or add, (*4)

"cakebake/yii2-accounts": "dev-master"

to the require section of your composer.json file and run php composer.phar update., (*5)

Configuration

To access the module, you need to add this to your application/console configuration (without the dots :P):, (*6)

...
'name' => 'My Application Name', //for emails like account activation, password reset, ...
...
'params' => [
    ...
    'supportEmail' => 'support@example.com', //form emails like account activation, password reset, ...
    ...
]
...
'components' => [
    ...
    'user' => [
        'class' => 'cakebake\accounts\components\User',
    ],
    'authManager' => [
        'class' => 'cakebake\accounts\components\AuthManager',
    ],
    ...
],
...
'modules' => [
    ...
    'accounts' => [
        'class' => 'cakebake\accounts\Module',
    ],
    'actionlog' => [
        'class' => 'cakebake\actionlog\Module',
    ],
    ...
],
...

Installation

Check your database settings and run migrations from your console. For more informations see Database Migration Documentation, (*7)

DB Table for accounts:, (*8)

php yii migrate --migrationPath=@vendor/cakebake/yii2-accounts/migrations/, (*9)

DB Table for RBAC:, (*10)

php yii migrate --migrationPath=@yii/rbac/migrations/, (*11)

DB Table for ActionLog:, (*12)

php yii migrate --migrationPath=@vendor/cakebake/yii2-actionlog/migrations/, (*13)

Usage

Open your website with URI "/accounts/user/login" and sign in by:, (*14)

Username: admin
Password: password

or, (*15)

Username: user
Password: password

The Versions

24/02 2015

dev-master

9999999-dev

User, manage, login and profile module for yii2 framework

  Sources   Download

LGPL-V3

The Requires

 

by cakebake (Jens A.)

authentication user auth yii2 yii login client account