Login token and the Essential, Shoelace, Foundation and Campus themes.

Login token and the Essential, Shoelace, Foundation and Campus themes.

by Gareth Barnard -
Number of replies: 2
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello,

If you've been hearing all about the 'Login token' -> https://docs.moodle.org/dev/Login_token - then on Moodle 3.5.3 I have checked:

  • Essential 3.5.1.2
  • Shoelace 3.5.0.2
  • Foundation 3.5.0.6
  • Campus 3.5.0.1

for the 'login token' and it is there on the login page.  Clearly some of these are versions that have not been released yet, however as the themes do not override the login page code then previous versions should not be affected.

A quick way to test a theme has the token if it is set as the theme for your site is to navigate to the login page (e.g the url mymoodle/login/index.php) in a browser and use the 'View page source' option - on Firefox 63.0.1 on Win 10 this is on the 'right click' menu on the page - on other browsers look in the help / search etc.  Then do a text search on the page for 'logintoken' which should look something like (please ignore the specific value):

<input type="hidden" name="logintoken" value="TdPRiLUZ2HTtFqIuzUjVVdcwq4FYDrkY">

you will need to be running a version of Moodle or above as specified on https://docs.moodle.org/dev/Login_token. ; Then you'll know that the theme is generating the token.

If you think this post is useful, then please mark it so.

Cheers,

Gareth

Average of ratings: Useful (6)
In reply to Gareth Barnard

Re: Login token and the Essential, Shoelace, Foundation and Campus themes.

by Mary Evans -

Gosh Gareth...that is worth knowing.

Thanks for the info which is very useful in my case!

Cheers

CheersMx