Closed johnitvn closed 9 years ago
In the class johnitvn\userplus\simple\controllers\SecurityController just define access controll for 4 actions: logout, change-password, login, register
johnitvn\userplus\simple\controllers\SecurityController
'access' => [ 'class' => AccessControl::className(), 'only' => ['logout', 'change-password', 'login', 'register'], 'rules' => [ [ 'actions' => ['login', 'register'], 'allow' => true, 'roles' => ['?'], ], [ 'actions' => ['logout', 'change-password'], 'allow' => true, 'roles' => ['@'], ], ], ],
Need to extends behaviors() in johnitvn\userplus\basic\controllers\SecurityController
johnitvn\userplus\basic\controllers\SecurityController
In the class
johnitvn\userplus\simple\controllers\SecurityController
just define access controll for 4 actions: logout, change-password, login, registerNeed to extends behaviors() in
johnitvn\userplus\basic\controllers\SecurityController