Change the password reset link sent in email

Change the password reset link sent in email

by IT ADIT -
Number of replies: 1

We are accessing moodle through different links (one for local use and one over internet). When a generates a password reset request, he/she gets a link to reset password in their email. If the person was accessing moodle from local link, he/she will have local link in their mail and if the person was accessing moodle from internet link, he/she will have internet link in their mail. 


But I want to send the same link irrespective of the link being accessed. I have tried modifying strings in language customisation, but it did not work.


Average of ratings: -
In reply to IT ADIT

Re: Change the password reset link sent in email

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

We are accessing moodle through different links (one for local use and one over internet).

It has never been officially supported. In older Moodle versions, even files serving did not work in such a scenario. It is generally better to have a single domain name to access your moodle host. It is possible to configure your local DNS so that for intranet users it returns one IP and for external internet users it returns another one.

In these emails, Moodle uses the value of $CFG->wwwroot defined in config.php to generate the link to itself.

Average of ratings: Useful (1)