Tuesday, July 2, 2024
HomeForAdministratorsLocked out of Moodle? How to fix Alternate Login URL error to...

Locked out of Moodle? How to fix Alternate Login URL error to log in to your Moodle site?

-

Moodle LMS is one of the most popular open source Learning Management System in the world. It is being used by more than 330 million users across 242 countries around the world. Moodle contains many features which are not known to many new Moodle administrators. In this post, we will discuss about Alternate Login URL setting in Moodle and how you can fix that in case you are locked out of Moodle due to improper configuration.

Alternate Login URL setting in Moodle allows you to configure an outside page which will be used for login purpose. It might be taking you to another provider for SSO purpose or you can make a completely new page with a form to login to Moodle. You can also have a look at Splash Login plugin which provides a custom splash page that only shows the IDP/SSO buttons and (optionally) a link to the manual Moodle login form.

Please note that before testing out this setting you need to make sure to enter a correct working URL otherwise you might get locked out of Moodle completely. You can mention an absolute URL in this field or a relative URL. In case you are specifying a relative URL then make sure it will be with respect to your wwwroot specified in config.php file.

How to fix incorrect alternate login URL in Moodle?

I was also trying to create a custom login form on my development moodle site and was locked out of Moodle. The incorrect URL setting leads to many redirects without actually loading the Login page. After going through a couple of Moodle forum topics, I figured out the solution.

There are two ways to address this problem:

  1. Override the Alternate Login URL in config.php file – In this case you need to add “$CFG->alternateloginurl = ”; ” and save it.
  2. Override the Alternate Login URL in the database – in the mdl_config table override the value for the alternateloginurl

Once you are done save your changes and now you should be able to login to your Moodle site again. What are your experiences with Moodle Alternate Login URL setting? Please share with us in the comments section below.

How to use Moodle Book

 
Jaswinder Singh
Jaswinder Singhhttps://lmsdaily.com
I am an experienced Moodle Professional with experience in Moodle Course Creation, Moodle Setup, Moodle Integration, Moodle Training, Moodle Support & troubleshooting. YI am the author of popular books - "How to use Moodle 4.1" and "how to use Moodle 2.7". I work with one goal in mind “CUSTOMER SATISFACTION” – whether this means working to achieve results within a specific deadline (or beating the deadline), or with a focus on solid quality, if my client requires the job to be done I will go out of my way to achieving whatever it is that is necessary to do so. Basically, I can take care of your all Moodle requirements so that you can focus on your core job and I will manage your Moodle LMS.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -spot_img

Popular Posts

Authentica Solutions Raises $6.2M in New Funding to Expand Its Operations

Authentica Solutions, a leader in data integration and intelligence management solutions for the education sector, has recently announced the successful completion of a $6.2...

Moodle Admins – Create custom reports in Moodle using Configurable reports plugin

Moodle LMS is the most popular open source learning management system with more than 420+ million users in the world. Wherever elearning is used...

Moodle Teachers – How to use the Ordering Question type in Moodle

Moodle 4.4 - the latest major version of the Moodle LMS is packed with a lot of exciting new features. One of such is...