getRequest() is deprecated in version 2.4

removed $this->getRequest() and added it as a parameter to be passed to loginAction() method

| Q             | A
| ------------- | ---
| Doc fix?         | yes
| New docs?     | no
| Applies to      | 2.4+