auth_fc: disable authenticator if improperly configured (#43653)
This commit is contained in:
parent
7d50310de5
commit
4c9b1fc932
|
@ -28,7 +28,9 @@ class FcAuthenticator(BaseAuthenticator):
|
|||
id = 'fc'
|
||||
|
||||
def enabled(self):
|
||||
return app_settings.enable
|
||||
return (app_settings.enable and
|
||||
app_settings.client_id and
|
||||
app_settings.client_secret)
|
||||
|
||||
def name(self):
|
||||
return gettext_noop('FranceConnect')
|
||||
|
|
Loading…
Reference in New Issue