Cannot login after disabling email authentication

Cannot login after disabling email authentication

by Blaze James -
Number of replies: 1

Hi all,

I was playing around with the registration process and was trying out different authentication methods. I added "no authentication" method and went on to disable email authentication to test it out. At that point, I got logged out and cannot log back in. How can I solve this?

Thank you!

Blaze

Average of ratings: -
In reply to Blaze James

Re: Cannot login after disabling email authentication

by William Thorsen -

Assuming you have access to your configuration files, try editing login/index.php (in my setup, this is at /var/www/html/login/index.php).

Find the line that says

$authplugin->loginpage_hook();
and disable it like so:

// $authplugin->loginpage_hook();

Moodle should then fall back to its default authentication method, i.e. email + password.

Let us know whether this works, or whether you've found another solution.

~ William

Source: Suggested here by Daniel Thies