Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| SpecialChangePassword | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * @license GPL-2.0-or-later |
| 4 | * @file |
| 5 | */ |
| 6 | |
| 7 | namespace MediaWiki\Specials; |
| 8 | |
| 9 | use MediaWiki\Auth\PasswordAuthenticationRequest; |
| 10 | use MediaWiki\SpecialPage\SpecialRedirectToSpecial; |
| 11 | |
| 12 | /** |
| 13 | * Compatibility and shortcut redirect to Special:ChangeCredentials, |
| 14 | * and to hide internal AuthManager class names. |
| 15 | * |
| 16 | * @ingroup SpecialPage |
| 17 | */ |
| 18 | class SpecialChangePassword extends SpecialRedirectToSpecial { |
| 19 | public function __construct() { |
| 20 | parent::__construct( 'ChangePassword', 'ChangeCredentials', |
| 21 | PasswordAuthenticationRequest::class, [ 'returnto', 'returntoquery' ] ); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | /** @deprecated class alias since 1.41 */ |
| 26 | class_alias( SpecialChangePassword::class, 'SpecialChangePassword' ); |