Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
WebAuthnConfig | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\WebAuthn\Config; |
4 | |
5 | use MediaWiki\Config\GlobalVarConfig; |
6 | use MediaWiki\Config\HashConfig; |
7 | use MediaWiki\Config\MultiConfig; |
8 | |
9 | class WebAuthnConfig extends MultiConfig { |
10 | public function __construct() { |
11 | parent::__construct( [ |
12 | new GlobalVarConfig( 'wgWebAuthn_' ), |
13 | new HashConfig( [ |
14 | // maximal number of keys user can have registered |
15 | 'maxKeysPerUser' => 5 |
16 | ] ) |
17 | ] ); |
18 | } |
19 | } |