-
Notifications
You must be signed in to change notification settings - Fork 2
/
e_url.php
42 lines (36 loc) · 928 Bytes
/
e_url.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
42
<?php
/*
* TwoFactorAuth
*
* Copyright (C) 2021-2022 e107 Inc. (https://www.e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
class twofactorauth_url
{
function config()
{
$config = array();
$config['verify'] = array(
'alias' => 'tfa',
'regex' => '^{alias}\/verify\/?$',
'sef' => '{alias}/verify',
'redirect' => '{e_PLUGIN}twofactorauth/verify.php',
);
$config['setup'] = array(
'alias' => 'tfa',
'regex' => '^{alias}\/setup\/?$',
'sef' => '{alias}/setup',
'redirect' => '{e_PLUGIN}twofactorauth/setup.php',
);
$config['recovery'] = array(
'alias' => 'tfa',
'regex' => '^{alias}\/recovery\/?$',
'sef' => '{alias}/recovery',
'redirect' => '{e_PLUGIN}twofactorauth/recovery.php',
);
return $config;
}
}