add backend theme AdminLte, bind reception/transaction to a permission
This commit is contained in:
@@ -66,6 +66,10 @@ class SiteController extends Controller
|
||||
}
|
||||
|
||||
$model = new LoginForm();
|
||||
$model->roles = [
|
||||
'admin',
|
||||
'employee'
|
||||
];
|
||||
if ($model->load(Yii::$app->request->post()) && $model->login()) {
|
||||
return $this->goBack();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user