Don't allow sign-ins to be disabled in admin settings if no authentication methods are configured
Summary
If no authentication methods are set, you're locked out of GitLab. The only way to regain access is through gitlab-rails console
, but no way to fix this via the UI.
Steps to reproduce
What is the current bug behavior?
There is no way to log in.
What is the expected correct behavior?
Not have that setting exposed if no authentication methods are enabled.
GitLab version
9.2.2-ee
Possible fixes
Check to see if there are any authentication methods configured before exposing the setting to disable signins in the admin settings. It might also need to be enabled by authentication methods are removed.