lithium\security\auth\adapter\Form::$_filters

protected property

Callback filters to apply to request data before using it in the authentication query. Each key in the array must match a request field specified in the $_fields property, and each value must either be a reference to a function or method name, or a closure. For example, to automatically hash passwords using simple SHA 512 hashing, the Form adapter could be configured with the following: array('password' => array('lithium\util\String', 'hash')).

Optionally, you can specify a callback with no key, which will receive (and can modify) the entire credentials array before the query is executed, as in the following example:

	Auth::config(array(
		'members' => array(
			'adapter' => 'Form',
			'model' => 'Member',
			'fields' => array('email', 'password'),
			'filters' => array(function($data) {
				// If the user is outside the company, then their account must have the
				// 'private' field set to true in order to log in:
				if (!preg_match('/@mycompany\.com$/', $data['email'])) {
					$data['private'] = true;
				}
				return $data;
			})
		)
	));

Source

	protected $_filters = array();