"Forgotten your username or password?" not working

"Forgotten your username or password?" not working

by B H -
Number of replies: 9
Our "Forgotten your username or password?" link isn't working on our login page (here).

Any ideas why, and how I might fix it?

(I've tried clearing cache, switching browsers etc.)

Thanks in advance for any help you can offer.
Average of ratings: -
In reply to B H

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

by C Behan -

Hi there,


Is your Moodle site sending any emails? If no, check your outgoing mail setup.


Catherine

In reply to C Behan

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

by B H -
Thanks for taking a look Catherine. Appreciate it.

I created a new user and ticked 'Generate user and notify user' and the email was received on the other end. So I presume the site is sending emails okay.

When I click on "Forgotten your username or password?" here that link points to https://moodle.paragprasad.com/login/forgot_password.php but it just redirects back to https://moodle.paragprasad.com/login/index.php
In reply to B H

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

by C Behan -
Sorry - I misunderstood the issue.
I don't have an answer but I'll post a link to a tracker issue which might inspire someone.
A similar issue was posted at https://tracker.moodle.org/browse/MDL-61167 - it was closed because it was caused by a theme (Rocket). However, you appear to be using Boost.

It might be helpful if you identify exactly which version of Moodle you are on, and if you are using other themes or have any modifications.
In reply to B H

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

by Jon Bolton -
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');
In reply to B H

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

by B H -
A quick update on this...

We managed to get it fixed by exporting all the courses, users and settings into a fresh Moodle install.

My guess is one of the files that the Forgot Password page needed to function got corrupted during an update earlier perhaps.

Anyway, it's all fixed now!

Thanks for the help.
In reply to B H

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

by Vlad Blando -

I have the same exact issue, the Forgotten your password feature is not working on 3.8, I have a fresh install.

Is this the only solution?