title: Yii2 Dektrium User, make login required for all actions and all controllers
body: <p>To make login necessary for all controllers and actions I did as said in <a href="https://stackoverflow.com/questions/30067849/yii2-require-all-controller-and-action-to-login">Yii2 require all Controller and Action to login</a> and added the below code to web.php</p>
  
  <pre><code>'as beforeRequest' =&gt; [
          'class' =&gt; 'yii\filters\AccessControl',
          'rules' =&gt; [
                  [
                          'allow' =&gt; true,
                          'actions' =&gt; ['login', 'forgot'],
                  ],
                  [
                          'allow' =&gt; true,
                          'roles' =&gt; ['@'],
                  ],
  
          ],
          'denyCallback' =&gt; function () {
                  return Yii::$app-&gt;response-&gt;redirect(['user/login']);
          },
  ],
  </code></pre>
  
  <p>but the problem is that ALL other actions like Forgot password are redirected to login page, I want to exclude user/forgot route from the login required condition. please help!</p>
  
  <p>Thanks </p>