MediaWiki  1.34.0
PasswordDef.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
16 class PasswordDef extends StringDef {
17 
18  public function normalizeSettings( array $settings ) {
19  $settings[ParamValidator::PARAM_SENSITIVE] = true;
20  return parent::normalizeSettings( $settings );
21  }
22 
23 }
Wikimedia\ParamValidator\ParamValidator\PARAM_SENSITIVE
const PARAM_SENSITIVE
(bool) Indicate that the parameter's value should not be logged.
Definition: ParamValidator.php:152
Wikimedia\ParamValidator\TypeDef\StringDef
Type definition for string types.
Definition: StringDef.php:24
Wikimedia\ParamValidator\TypeDef\PasswordDef\normalizeSettings
normalizeSettings(array $settings)
Normalize a settings array.
Definition: PasswordDef.php:18
Wikimedia\ParamValidator\TypeDef\PasswordDef
Type definition for "password" types.
Definition: PasswordDef.php:16
Wikimedia\ParamValidator\TypeDef
Definition: BooleanDef.php:3
Wikimedia\ParamValidator\ParamValidator
Service for formatting and validating API parameters.
Definition: ParamValidator.php:38