'modules' => [
'user' => [
'class' => 'dektrium\user\Module',
'enableUnconfirmedLogin' => true,
'enableConfirmation' => false,
'cost' => 12,
'admins' => [
'admin'
],
'layout' => '@frontend/themes/login/views/layouts/main.php',
'controllerMap' => [
'registration' => 'frontend\controllers\user\RegistrationController',
'security' => 'frontend\controllers\user\SecurityController',
'profile' => 'frontend\controllers\user\ProfileController',
],
'modelMap' => [
'RegistrationForm' => 'frontend\models\RegistrationForm',
],
]
]
evstevemd
(Stefano Mtangoo)
2
How do you login without registering?
no, i need register before login
evstevemd
(Stefano Mtangoo)
4
You cannot auto register, you have to present the form first and then register on submission. The docs are clear on that.
If you mean creating default user then make a migration script and run it