Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| RegistrationCallback | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| onRegistration | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /* |
| 3 | * @license GPL-2.0-or-later |
| 4 | * @file |
| 5 | */ |
| 6 | |
| 7 | namespace MediaWiki\Extension\OATHAuth\Hook; |
| 8 | |
| 9 | class RegistrationCallback { |
| 10 | |
| 11 | public static function onRegistration(): void { |
| 12 | // Following the pattern in TorBlock, this is a string |
| 13 | define( 'APCOND_OATH_HAS2FA', 'oath.has_2fa' ); |
| 14 | } |
| 15 | } |