AngellusMortis / django_microsoft_auth

Simple app to enable Microsoft Account, Office 365 and Xbox Live authentcation as a Django authentcation backend.
MIT License
137 stars 84 forks source link

Hide default Django auth when disabled #471

Open mnelson4 opened 2 years ago

mnelson4 commented 2 years ago

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)

f1rsty commented 2 years ago

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