src/Controller/Component/UserToolComponent.php
protected function _beforeLogin(EntityInterface $entity, array $options) {
		$entity = $this->UserTable->patchEntity($entity, $this->_getRequest()->getData(), ['validate' => false]);

		$event = $this->dispatchEvent('User.beforeLogin', [
			'options' => $options,
			'entity' => $entity
		]);

		if ($event->isStopped()) {
			return $event->result;
		}

		return $this->_getAuthObject()->identify();
	}
protected function _beforeLogin(EntityInterface $entity, array $options) {
		$entity = $this->UserTable->patchEntity($entity, $this->_getRequest()->getData(), ['validate' => false]);

		$event = $this->dispatchEvent('User.beforeLogin', [
			'options' => $options,
			'entity' => $entity
		]);

		if ($event->isStopped()) {
			return $event->result;
		}

		return $this->_getAuthObject()->identify();
	}
protected function _beforeLogin ( EntityInterface $ entity , array $ options ) { $ entity = $ this -> UserTable -> patchEntity ( $ entity , $ this -> _getRequest ( ) -> getData ( ) , [ 'validate' => false ] ) ; $ event = $ this -> dispatchEvent ( 'User.beforeLogin' , [ 'options' => $ options , 'entity' => $ entity ] ) ; if ( $ event -> isStopped ( ) ) { return $ event -> result ; } return $ this -> _getAuthObject ( ) -> identify ( ) ; }
Internal callback to prepare the credentials for the login.

@param \Cake\Datasource\EntityInterface $entity User entity
@param array $options Options
@return mixed
Internal callback to prepare the credentials for the login .