Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Re: Facebook / Google sign-in options do not show up...

$
0
0
by Ken Task.  

Oh, yeah ... one more item about the button not showing ....

Check the config for the Oath2 Authenication.   At the bottom of the form there is check box for display and a comment that says/shows:

Display the Google/Facebook/... logo buttons on the top of the login page. If you want to position the buttons yourself in your login page, you can keep this option disabled and add the following code: <?php require_once($CFG->dirroot . '/auth/googleoauth2/lib.php'); auth_googleoauth2_display_buttons(); ?>

If that doesn't make the image/button show, ,then one could edit the login_form.html file found in moodlecode/login/ and add the above red line to the bottom of login_form.html page.

Think I'd leave that alone, however, and try it first after the move to live to see if it shows up or not.   Doesn't show ... then add the line.

And a little hint on that action if using git ... git won't like that file being edited.   So a git pull will failure to execute.   Simple fix ... remove the line ... run your git pull, then add the line back *IF* the button doesn't show.

And ... just a thought ... are you running anything 'extra' to protect php scripts? If so, what?

'spirit of sharing', Ken



Viewing all articles
Browse latest Browse all 8256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>