src/Model/UserValidationTrait.php
public function validationChangePassword($validator) {
		$validator->setProvider('userBehavior', $this);

		$validator = $this->validationPassword($validator);
		$validator = $this->validationConfirmPassword($validator);
		$validator = $this->validationOldPassword($validator);

		return $validator;
	}
public function validationChangePassword($validator) {
		$validator->setProvider('userBehavior', $this);

		$validator = $this->validationPassword($validator);
		$validator = $this->validationConfirmPassword($validator);
		$validator = $this->validationOldPassword($validator);

		return $validator;
	}
public function validationChangePassword ( $ validator ) { $ validator -> setProvider ( 'userBehavior' , $ this ) ; $ validator = $ this -> validationPassword ( $ validator ) ; $ validator = $ this -> validationConfirmPassword ( $ validator ) ; $ validator = $ this -> validationOldPassword ( $ validator ) ; return $ validator ; }
Configures the validator with rules for the password change

@param \Cake\Validation\Validator $validator Validator
@return \Cake\Validation\Validator
Configures the validator with rules for the password change