dev-master
9999999-devUser, manage, login and profile module for yii2 framework
LGPL-V3
The Requires
by cakebake (Jens A.)
authentication user auth yii2 yii login client account
Wallogit.com
2017 © Pedro Peláez
User, manage, login and profile module for yii2 framework
User, manage, login and profile module for yii2 framework, (*1)
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)
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',
],
...
],
...
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)
Open your website with URI "/accounts/user/login" and sign in by:, (*14)
Username: admin Password: password
or, (*15)
Username: user Password: password
User, manage, login and profile module for yii2 framework
LGPL-V3
authentication user auth yii2 yii login client account