Second email for password recovery

Re: Second email for password recovery

by Hay B -
Number of replies: 0
Hi,
I know this was a little while ago but I wondered if you ever came up with a solution to your problem?
We have a similar issue. Our students' accounts are set up using email addresses generated on our web hosting and then I set up mail forwarders for these addresses to a 'contact' email of their choice stored in a custom field. This ensures they receive and can read all messages from Moodle (including any password reset emails). Our problem is that when students need to reset their password, they have often forgotten their usernames and the only email they are aware of is the 'contact' email address - which Moodle doesn't check for in the database in order to send out a password reset email.
I would be interested to know where and how you were able to alter the password reset library to affect its behaviour so I can look at how it checks emails against the database and possibly change it to check our custom field too.