-
Notifications
You must be signed in to change notification settings - Fork 26
/
two-factor-authentication.php
68 lines (57 loc) · 1.92 KB
/
two-factor-authentication.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
return [
'*' => [
/**
* Allow a TOTP delay (in seconds). This gives the user some extra
* time after the code has expired.
*/
'totpDelay' => null,
/**
* Whether 2FA should be enabled for the front-end.
*/
'verifyFrontEnd' => false,
/**
* Whether 2FA should be enabled for the back-end/control panel.
*/
'verifyBackEnd' => true,
/**
* Whether users should be forced to enable 2FA when logging into the
* front-end. When this is true, users that do not have 2FA enabled will
* not be able to access the front-end without first enabling 2FA.
*/
'forceFrontEnd' => false,
/**
* Whether users should be forced to enable 2FA when logging into the
* backend/control panel. When this is true, users that do not have
* 2FA enabled will not be able to access the control panel without
* first enabling 2FA.
*/
'forceBackEnd' => false,
/**
* The URI we should use for 2FA login verification on the front-end.
*/
'verifyPath' => '',
/**
* The URI we should use for 2FA settings (enabling/disabling) on the front-end.
*/
'settingsPath' => '',
/**
* Allow paths that do not need 2FA. Exact path or regex, no leading slashes.
*/
'backEndPathAllow' => [],
/**
*
* NOTE: Use EITHER `frontEndPathAllow` OR `frontEndPathExclude`.
* Using both will block all requests.
*
*/
/**
* Allow paths that do not need 2FA. Exact path or regex, no leading slashes.
*/
'frontEndPathAllow' => [],
/**
* Exclude paths that _do_ need 2FA. Exact path or regex, no leading slashes.
*/
'frontEndPathExclude' => [],
],
];