MDL-38663 login: Remove login info from forgot password page
MDL-38663 login: Remove login info from forgot password page

Since this is checked in several locations, I have introduced a new
protected function to check whether the current page is a login page.

This could potentially be exposed as a public function, but Sam's original
comment suggests that this is undesirable.

dilawar/moodle