Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

event_types: Key authentication_methods by backend name.

Evy Kassirera6720b6d3893
diff --git a/zerver/lib/event_types.py b/zerver/lib/event_types.py
index 3dc87bd9859..9f888822de5 100644
--- a/zerver/lib/event_types.py
+++ b/zerver/lib/event_types.py
@@ -574,16 +574,8 @@ class AuthenticationMethodDict(AuthenticationMethodDictCore):
unavailable_reason: str | None = None
-class AuthenticationDict(BaseModel):
- Google: AuthenticationMethodDict
- Dev: AuthenticationMethodDict
- LDAP: AuthenticationMethodDict
- GitHub: AuthenticationMethodDict
- Email: AuthenticationMethodDict
-
-
class AuthenticationData(BaseModel):
- authentication_methods: AuthenticationDict
+ authentication_methods: dict[str, AuthenticationMethodDict]
class IconData(BaseModel):