Cannot login after upgarding to 3.5.3

Cannot login after upgarding to 3.5.3

Nosūtīja Yong Ra
Atbilžu skaits: 4

I upgraded my dev Moodle server to 3.5.3. All of a sudden I could not login. So, I changed the password using the forgot password and was able to login after changing the password.


After I signed out, I could not login again. Same for admin or regular user. Only way to login again is to change the password, but after logging out, same thing. Cannot login.


Anyone else had the same problem? Is there a fix?


Thank you,

Vidējais novērtējums: -
Atbildot uz Yong Ra

Re: Cannot login after upgarding to 3.5.3

Nosūtīja Jamie Biddulph

This is due to a recent security update included in 3.5.3.

Some non-standard themes may require updating to include new functionality to work with the login page.

The work-around is to add the following line to your Moodle config.php file.

$CFG->disablelogintoken = true;

This will allow you to login again but circumvents the security fix.



Atbildot uz Jamie Biddulph

Re: Cannot login after upgarding to 3.5.3

Nosūtīja Yong Ra

Thank you. That fix the problem. Also, by the time I read this posting, most of the themes are fixed for the token issue.


Ra

Atbildot uz Yong Ra

Re: Cannot login after upgarding to 3.5.3

Nosūtīja Chris Kenniburg
Plugin developers attēls

If using a non-core theme they must update to include a login token or a change to the moodle config to turn off login tokens is required.

New Moodle Doc helps explain the issue.  A new login token is required for better security I am guessing.  

https://docs.moodle.org/dev/Login_token

Fordson theme update 15 fixes this issue for our theme.