File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1111use humhub \components \bootstrap \ModuleAutoLoader ;
1212use humhub \components \Module as BaseModule ;
1313use Yii ;
14+ use yii \base \Event ;
1415use yii \helpers \Url ;
1516
1617class Module extends BaseModule
@@ -107,4 +108,13 @@ public function isActiveModule($moduleId)
107108
108109 return !isset ($ apiModules [$ moduleId ]) || $ apiModules [$ moduleId ];
109110 }
111+
112+ public function beforeAction ($ action )
113+ {
114+ Yii::$ app ->on ('twofa.beforeCheck ' , function (Event $ event ) use ($ action ) {
115+ $ event ->handled = $ action ->controller ->id !== 'admin-user ' ;
116+ });
117+
118+ return parent ::beforeAction ($ action );
119+ }
110120}
Original file line number Diff line number Diff line change 11Changelog
22=========
33
4- 0.10.6 (Unreleased)
5- ----------------------
4+ 0.10.6 (April 17, 2025)
5+ -----------------------
6+ - Enh #192 : Ignore all actions from 2FA check
67- Fix #194 : Fix failing tests
78
890.10.5 (March 3, 2025)
You can’t perform that action at this time.
0 commit comments