Download the PHP package infoweb-internet-solutions/yii2-cms-user without Composer
On this page you can find all versions of the php package infoweb-internet-solutions/yii2-cms-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infoweb-internet-solutions/yii2-cms-user
More information about infoweb-internet-solutions/yii2-cms-user
Files in infoweb-internet-solutions/yii2-cms-user
Package yii2-cms-user
Short Description Flexible user registration and authentication module for Yii2
License MIT
Informations about the package yii2-cms-user
CMS user module for Yii 2
Docs
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply modify your backend configuration as follows:
To use the module, execute yii migration
Separate frontend and backend user
If you want to use separate sessions for users of the frontend and backend application, a couple of configurations have to be updated.
-
Bootstrap the session component in
backend/config/main.php
-
Set the identityCookie of the user component and update the request and session components in
backend/config/main.php
-
Bootstrap the session component in
frontend/config/main.php
-
Update the user, request and session components in
frontend/config/main.php
-
At this point you can implement the
models/frontend/LoginForm.php
andmodels/frontend/SignupForm.php
models and create views and controller actions for them. - Some sort of access control has to be implemented in your frontend controllers to determine which actions are allowed for a frontend user. This can be done through a rbac role of by implementing an access filter as a behavior.