nsupdate-info / nsupdate.info

Dynamic DNS service
https://nsupdateinfo.readthedocs.org/
Other
1.02k stars 110 forks source link

How to totally disable Social Auth plugins #557

Open gabviv73 opened 3 weeks ago

gabviv73 commented 3 weeks ago

Hy, I've disable signups using REGISTRATION_OPEN=False but at /accounts/login/ there are the social account logins providers available. How do I disable them ?

Thank you

elnappo commented 3 weeks ago

IIRC you have to remove them from AUTHENTICATION_BACKENDS i.e.:

AUTHENTICATION_BACKENDS = ["django.contrib.auth.backends.ModelBackend"]

if I'm wrong read https://python-social-auth.readthedocs.io/en/latest/index.html

gabviv73 commented 3 weeks ago

Thank you, now there no more social login plugins available. Is it possible to disable also the message in the login page:

Login with a remote Account

No remote account logins enabled.

Please login with a local account.

?

Thanks,

elnappo commented 3 weeks ago

This is not possible via a config parameter, you would have to edit the template here: https://github.com/nsupdate-info/nsupdate.info/blob/master/src/nsupdate/login/templates/login.html#L32