Top of home page login not working, but login/index.php does work

Top of home page login not working, but login/index.php does work

by Rob Phillips -
Number of replies: 2

Hello,

I can't figure out what going on with our Moodle site.

I'm having an issue where the login bar at the top of the home page (learning.crcds.edu) is forwarding over to https://learning.crcds.edu/login/index.php is telling everyone there password is wrong.  

However, if you type your info in again on https://learning.crcds.edu/login/index.php then the password works just fine.

Any ideas?

We're not using any external authentication, everyone has either self-registered or been manually registered.

Thanks,

Rob

Average of ratings: -
In reply to Rob Phillips

Re: Top of home page login not working, but login/index.php does work

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Login tokens. Try adding $CFG->disablelogintoken = true to config.php which should resolve this in the short term. You should then find out how to update your theme to support login tokens and remove this line as it's disabling a security improvement, i.e. not recommended.

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: Top of home page login not working, but login/index.php does work

by Djamel djamelk -

Leon you made my day !

Thanks a lot, i did that change on config.php as our template is a bit old, and it worked like a charm.

Cheers