mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
auth: Remove some now-unused auth_backend_enabled helpers.
These were causing coverage errors, and in any case are now useless.
This commit is contained in:
@@ -67,12 +67,6 @@ def google_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
|||||||
def github_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
def github_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
||||||
return auth_enabled_helper(['GitHub'], realm)
|
return auth_enabled_helper(['GitHub'], realm)
|
||||||
|
|
||||||
def azuread_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
|
||||||
return auth_enabled_helper(['AzureAD'], realm)
|
|
||||||
|
|
||||||
def remote_auth_enabled(realm: Optional[Realm]=None) -> bool:
|
|
||||||
return auth_enabled_helper(['RemoteUser'], realm)
|
|
||||||
|
|
||||||
def any_oauth_backend_enabled(realm: Optional[Realm]=None) -> bool:
|
def any_oauth_backend_enabled(realm: Optional[Realm]=None) -> bool:
|
||||||
"""Used by the login page process to determine whether to show the
|
"""Used by the login page process to determine whether to show the
|
||||||
'OR' for login with Google"""
|
'OR' for login with Google"""
|
||||||
|
|||||||
Reference in New Issue
Block a user