Topic on Project:Support desk

Is there a way to disable manual login?

5
Summary by Djkcel

You can hide the fields/button using CSS, making sure to first enable $wgAllowSiteCSSOnRestrictedPages = true; in local settings.

Djkcel (talkcontribs)

I have SAML login enabled with the button "Log in with Google." I want to remove the normal username/password fields with their blue log in button, but haven't been able to figure out. Can this be done?

2405:204:311F:6904:5C7E:BD6:DE7A:9D7 (talkcontribs)

Go to defaultsettings.php file and set false for non for non login users. Login button disabled.

2001:16B8:1081:F100:C022:FFBF:E50:3889 (talkcontribs)

The previous comment does neither seem clear nor helpful. Note that defaultsettings.php should not be edited - I don't even know, if a file with that name exists. Local configuration however always belongs into the file LocalSettings.php.

How did you nable SAML login? If that is happening with an extension: Doesn't that extension have a way to remove the superfluous things? If not, you could hide them with CSS...

Djkcel (talkcontribs)

Thank you! I was using the Google Login extension, but I didn't see a way in this module to disable manual logins. I was able to use the CSS by hiding a few fields, wpLoginAttempt etc. Now it only enables Google Login.

Djkcel (talkcontribs)

Thank you, but I can't find a defaultsettings.php in /includes. I found a copy of it online but it said never to edit, I guess I could copy whatever part I need into localsettings.php. But I can't find the exact field you were referring to, do you know what it's called?