"Forgotten your username or password?" not working

Re: "Forgotten your username or password?" not working

by Jon Bolton -
Number of replies: 3
Picture of Particularly helpful Moodlers Picture of Testers
Go to Site admin > Plugins > Authentication > Manage authentication

Is there anything set for “Forgotten password URL“? It should be empty if you’re using the Moodle password reset functionality.
In reply to Jon Bolton

Ang: Re: "Forgotten your username or password?" not working

by Preben Pedersen -
Hi Jon

I'm also experiencing this problem on two platforms since they have been upgraded to Moodle 3.8.

The 'Forgotten password URL' field is empty, so it should work by default, but when people click the link at the login page, they just get redirected to the login-form. And people who can login can't change their password either.

Any idea?
In reply to Preben Pedersen

Re: Ang: Re: "Forgotten your username or password?" not working

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
How did you install the upgrade?

What build number is your new Moodle?

What theme are you using?

Do you have any third-party plugins installed?

What environment is your new Moodle running on? OS, versions of PHP, MySQL, etc.

What’s the collation of your database tables?

Is there an .htaccess file in the directory that Moodle is installed in? Or anywhere else on the server running your Moodle?

As a matter of interest, who are you hosting with?

Can you post the content of your config.php file (taking out any passwords!!)
In reply to Jon Bolton

Ang: Re: Ang: Re: "Forgotten your username or password?" not working

by Preben Pedersen -
How did you install the upgrade?
Through SFTP

What build number is your new Moodle?
Moodle 3.8.2+ (Build: 20200428) (tried to upgrade to newest version, hoping it would be fix it, but it didn't)

What theme are you using?
EnlightLite, but doesn't work in Boost either.

Do you have any third-party plugins installed?
Got a few from the Moodle plugin repository. Do you want a list of them all, or just the enabled one, or maybe just authentication ones?

What environment is your new Moodle running on? OS, versions of PHP, MySQL, etc.
Debian 9.5, PHP 7.1.29, MariaDB 10.1.26

What’s the collation of your database tables?
Utf8mb4

Is there an .htaccess file in the directory that Moodle is installed in? Or anywhere else on the server running your Moodle?
There is two .htaccess files. One is located at Moodledata/.htaccess and the other at Moodledata/temp/.htaccess

As a matter of interest, who are you hosting with?
None, we host our own servers.

Can you post the content of your config.php file (taking out any passwords!!)
<?php  // Moodle configuration file

unset($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->preventexecpath = false;
$CFG->dbtype    = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost    = '10.153.15.210';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = '**********';
$CFG->dbpass    = '**********';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbport' => '',
  'dbsocket' => '',
  'dbcollation' => 'utf8mb4_unicode_ci',
);

$CFG->wwwroot   = '**********';
$CFG->dataroot  = '/var/www/moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');