apps/password_policy/lib/PasswordValidator.php
/**
	 * check if password matches the minimum length defined by the admin
	 *
	 * @param string $password
	 * @throws HintException
	 */
check if password matches the minimum length defined by the admin
@param string $password
@throws HintException
check if password matches the minimum length defined by the admin @param string $password @throws HintException
protected function checkPasswordLength($password) {
		$minLength = $this->config->getMinLength();
		if(strlen($password) < $minLength) {
			$message = 'Password need to be at least ' . $minLength . ' characters long';
			$message_t = $this->l->t(
				'Password need to be at least %s characters long', [$minLength]
			);
			throw new HintException($message, $message_t);
		}
	}
protected function checkPasswordLength ( $ password ) { $ minLength = $ this -> config -> getMinLength ( ) ; if ( strlen ( $ password ) < $ minLength ) { $ message = 'Password need to be at least ' . $ minLength . ' characters long' ; $ message_t = $ this -> l -> t ( 'Password need to be at least %s characters long' , [ $ minLength ] ) ; throw new HintException ( $ message , $ message_t ) ; } }
check if password matches the minimum length defined by the admin
 @param string $password
 @throws HintException
check if password matches the minimum length defined by the admin @param string $password @throws HintException