-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.php
26 lines (23 loc) · 1002 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2020 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
use humhub\components\Application;
use humhub\modules\twofa\Events;
use humhub\modules\user\controllers\AuthController;
use humhub\modules\user\widgets\AccountSettingsMenu;
use yii\web\Controller;
return [
'id' => 'twofa',
'class' => 'humhub\modules\twofa\Module',
'namespace' => 'humhub\modules\twofa',
'events' => [
[Application::class, Application::EVENT_BEFORE_REQUEST, [Events::class, 'onBeforeRequest']],
[AuthController::class, AuthController::EVENT_AFTER_LOGIN, [Events::class, 'onAfterLogin']],
[Controller::class, Controller::EVENT_BEFORE_ACTION, [Events::class, 'onBeforeAction']],
[Controller::class, Controller::EVENT_AFTER_ACTION, [Events::class, 'onAfterAction']],
[AccountSettingsMenu::class, AccountSettingsMenu::EVENT_INIT, [Events::class, 'onProfileSettingMenuInit']],
],
];