apps/password_policy/lib/PasswordValidator.php
/**
	 * check if password contain at least one special character
	 *
	 * @param string $password
	 * @throws HintException
	 */
check if password contain at least one special character
@param string $password
@throws HintException
check if password contain at least one special character @param string $password @throws HintException
protected function checkSpecialCharacters($password) {
		$enforceSpecialCharacters = $this->config->getEnforceSpecialCharacters();
		if($enforceSpecialCharacters && ctype_alnum($password)) {
			$message = 'Password need to contain at least one special character.';
			$message_t = $this->l->t(
				'Password need to contain at least one special character.'
			);
			throw new HintException($message, $message_t);
		}
	}
protected function checkSpecialCharacters ( $ password ) { $ enforceSpecialCharacters = $ this -> config -> getEnforceSpecialCharacters ( ) ; if ( $ enforceSpecialCharacters && ctype_alnum ( $ password ) ) { $ message = 'Password need to contain at least one special character.' ; $ message_t = $ this -> l -> t ( 'Password need to contain at least one special character.' ) ; throw new HintException ( $ message , $ message_t ) ; } }
check if password contain at least one special character
 @param string $password
 @throws HintException
check if password contain at least one special character @param string $password @throws HintException