-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
executable file
·41 lines (33 loc) · 978 Bytes
/
Plugin.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Kanboard\Plugin\Force2FA;
use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
class Plugin extends Base
{
public function initialize()
{
$this->helper->register('Force2FAHelper', '\Kanboard\Plugin\Force2FA\Helper\Force2FAHelper');
$this->template->hook->attach('template:config:application', 'Force2FA:config/application');
$this->template->hook->attach('template:layout:head', 'Force2FA:layout/head');
}
public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}
public function getPluginName()
{
return 'Force2FA';
}
public function getPluginDescription()
{
return t('Force all users to use 2FA');
}
public function getPluginAuthor()
{
return 'Asim Husanović <asim.husanovic@atom.solutions>';
}
public function getPluginVersion()
{
return '1.0.0';
}
}