Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

cakebake/yii2-accounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

User, manage, login and profile module for yii2 framework

Pre-Installation

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

You can then install the package using the following command:

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

or add

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

to the require section of your composer.json file and run php composer.phar update.

Configuration

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

...
'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

DB Table for accounts:

php yii migrate --migrationPath=@vendor/cakebake/yii2-accounts/migrations/

DB Table for RBAC:

php yii migrate --migrationPath=@yii/rbac/migrations/

DB Table for ActionLog:

php yii migrate --migrationPath=@vendor/cakebake/yii2-actionlog/migrations/

Usage

Open your website with URI "/accounts/user/login" and sign in by:

Username: admin
Password: password

or

Username: user
Password: password

About

User and profile module for yii2 framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages