django_microsoft_auth icon indicating copy to clipboard operation
django_microsoft_auth copied to clipboard

Hide default Django auth when disabled

Open mnelson4 opened this issue 4 years ago • 1 comments

If I remove 'django.contrib.auth.backends.ModelBackend' from AUTHENTICATION_BACKENDS in my settings file (because I consider Microsoft auth more secure than default passwords), I'd like the "Password" button to be hidden. See screenshot: 2022-March-18 13-28-40-935

Is there a reason not to do that? (If Microsoft auth stops working for some reason, I'll re-enable the default Django authentication)

mnelson4 avatar Mar 18 '22 20:03 mnelson4

They overrode the admin login page, you can customize it by editing it in https://github.com/AngellusMortis/django_microsoft_auth/blob/master/microsoft_auth/templates/microsoft/admin_login.html or by overriding it again and customizing it to suit your needs

f1rsty avatar Sep 17 '22 05:09 f1rsty