I would like to communicate with Mailchimp. My students are manually enrolled and they have to change their password on their first login. So my idea is to include a checkbox in that page to give them the option to subscribe to our newsletters.
I found that the code which generates that page is in login/change_password.php and login/change_password_form.php. But I don't want to modify any core file of moodle and I don't know where else I should put my code. Where should I put it? Thank you in advance.