mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-28 06:53:12 +08:00
Add option to disable login form (#1269)
This commit is contained in:
@@ -19,6 +19,7 @@ class LinkdingLoginView(auth_views.LoginView):
|
||||
context = super().get_context_data(**kwargs)
|
||||
|
||||
context["enable_oidc"] = settings.LD_ENABLE_OIDC
|
||||
context["disable_login"] = settings.LD_DISABLE_LOGIN_FORM
|
||||
return context
|
||||
|
||||
def form_invalid(self, form):
|
||||
|
||||
Reference in New Issue
Block a user