protected function forgotten_password_url_warning($invalidforgottenpasswordurl) {
        $output = '';
        if ($invalidforgottenpasswordurl) {
            $settingslink = new moodle_url('/admin/settings.php', ['section' => 'manageauths']);
            $configurebutton = $this->single_button($settingslink, get_string('check', 'moodle'));
            $output .= $this->warning(get_string('invalidforgottenpasswordurl', 'admin') . '&nbsp;' . $configurebutton,
                'error alert alert-danger');
        }

        return $output;
    }