Removing the local login option

Removing the local login option

by Colin Tennyson -
Number of replies: 3

Hello - I have recently integrated our moodle environment with Office 365 Authentication. Which works fantastic.

How can I now remove the local authentication option at the login screen and only use Office 365 authentication ?

Login

Average of ratings: -
In reply to Colin Tennyson

Re: Removing the local login option

by Ken Task -
Picture of Particularly helpful Moodlers

There should be at least one or two accounts that can use manual (local authentication) as opposed to any other type that's remote.

Let's say there is a hickup in Office 365 Authen ... if all accounts are set to auth that way, how does one get into Moodle admin to fix anything that is broken?  Would leave only one way ... command line .... and while quite powerful, command line dependent upon hosting platform OS ... still can't do it all from CLI.

You could use language adjustments to put above the manual login form on the left to say something like 'System Admins Only' above and remind all others to use the O365 button on the right.

Or you could hack away and remove panel on left with theme css hides or even create customized login screens (own forms not part of core).

Hacking code/customizing could then lead to issues with updating or upgrading site.

Choice, of course, is yours!  Decide wisely!

My 2 'sense'!

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Removing the local login option

by Colin Tennyson -
Hi Ken - You raise some fantastic points.

I do prefer the idea of tagging the local authentication menu with "Sys Admin Only" or something equivalent.
How can I edit the text on this login page ?

Appreciate your support.
In reply to Colin Tennyson

Re: Removing the local login option

by Ken Task -
Picture of Particularly helpful Moodlers

First, check out:
Administration / Plugins / Authentication / Common Settings
Instructions

Next check out language ..
Site administration / Language / Language customisation
Chose language
Open Lang pack for editing
After loading, Continue
Core: moodle.php
Only strings containing 'Cookie'

Change:
Cookies must be enabled in your browser

to add something above the above that text.

Something like:

Site Admins Use Regular login form. 

All others use the Google button!
Cookies must be enabled in your browser

Looks like attached ...

'SoS', Ken

Attachment loginlang.png
Average of ratings: Useful (1)