Elgg  Version 6.1
InvalidPasswordLengthException.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
13 
17  public function __construct(string $message = '', int $code = 0, \Throwable $previous = null) {
18  if (!$message) {
19  $message = elgg_echo('Security:InvalidPasswordLengthException', [elgg_get_config('min_password_length')]);
20  }
21 
22  parent::__construct($message, $code, $previous);
23  }
24 }
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
__construct(string $message= '', int $code=0,\Throwable $previous=null)
{}
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
Throw when a Security Exception occurs.
Indicate a password string doesn&#39;t meet the minimal length requirements.