Moodle Moodle 3.2.1 - Updated plugins - GoogleAuth2 Not showing in login

Moodle Moodle 3.2.1 - Updated plugins - GoogleAuth2 Not showing in login

by Beta G -
Number of replies: 2

Dear Moodle Members


Recently through admin area I updated some plugins because they showed there and we are in Moodle 3.2.1 so even GoogleAuth2 updated to some version.


Now its not showing in Login page to click red login with google - but its installed in Auth folder etc.


Problem is we don't have access as admin with other options like manual or something -> How to fix this to show up again and use it or how to get manual login so at least we can check something with admin login.


Best regards

Average of ratings: -
In reply to Beta G

Re: Moodle Moodle 3.2.1 - Updated plugins - GoogleAuth2 Not showing in login

by Beta G -

Mark topic as fixed.


I added this line in config.php

$CFG->theme = 'bootstrapbase';


Which changes to a theme which have login form then I login into it with my manual username of admin - which is created when Moodle is first installed then I go and enable GoogleAuth2 - not sure why it was disabled during update of it.

In reply to Beta G

Re: Moodle Moodle 3.2.1 - Updated plugins - GoogleAuth2 Not showing in login

by Ken Task -
Picture of Particularly helpful Moodlers

Well, we've been in Skype and direct EMail communication because I was one of few seen online. :|

Time for some finger wags ....

1. always ... always ... always ... leave at least one user set to manual that has admin levels of access.  The logical user is id 2 as it was the first user account created with moodle was installed.   Leave that account alone ... set to manual and know that even if you forget the password, the password can be re-set via moodlecode/admin/cli/reset_password.php

2. if you hack core code ... keep a copy of what you hacked handy.

3. Always research upgrades ... plugin compatibility etc. *before* pulling the trigger.  Matter of fact, best to try out things with a clone of the production site ... especially when doing any 'hyperjump' ... ie, skipping versions.  Many upgrades are not 'business as usual'.

4. Always have a full site backup and know how to restore without any minor upgrade in the series.

5. Learning to use git witd updates and upgrades **will simply** admin life!!!

End finger wags ...

Going forward .... the mdl_user table must be manually manipulated to make the transition from old Google Auth logins to new Oath2.   While site is 3.2.x use mysql to query mdl_user table for id, auth.username,firstname,lastname,email.

Compare that output to the user at ID 2.

Make a list of accounts that are admins ... one can work with changing various columns for all users while excluding those users who are admins.  Hint: the 'not in' parameter ... which would include the id numbers of those whose accounts should remain manual and are admin levels.

Op has dodged a bullet this time ... better not play Roulette! smile

Thanks for sharing back what you did for others to try if they find themselves in the same issue.

Bet if you looked at the theme you were using you'll find the hack that was added to get the 'red button' for Google to show.    With that line in config.php, please remember that overrides what one does in Moodle admin interface for themes - can't change theme.

'spirit of sharing', Ken