protected function onCredentials(HttpServletRequestInterface $servletRequest, HttpServletResponseInterface $servletResponse)
{
// try to load username and password from the request instead
if ($servletRequest->hasParameter(FormKeys::USERNAME) && $servletRequest->hasParameter(FormKeys::PASSWORD)) {
// load username/password from the request
$this->username = new String($servletRequest->getParameter(FormKeys::USERNAME));
$this->password = new String($servletRequest->getParameter(FormKeys::PASSWORD));
}
}