For basic application template
that want to have user stored in database.
To use this feature, create required table by execute migration.
./yii migrate --migrationPath=@mdm/admin/migrations
Then, change config of user component
'components' => [
...
'user' => [
'identityClass' => 'mdm\admin\models\User',
'loginUrl' => ['admin/user/login'],
]
]
Then you can access this menu at index.php?r=admin/user
.
http://localhost/myapp/index.php?r=admin/user/signup
Default registered user has status ACTIVE
, mean user can login without activation needed.
To change that, you can change at config/params.php
// config/params.php
return [
...
'mdm.admin.configs' => [
'defaultUserStatus' => 0, // 0 = inactive, 10 = active
]
];
Login page can access at index.php?r=admin/user/login