diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-03-26 17:51:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 16:51:13 +0000 |
commit | e8e2ddb60ae11db488f159901d918cb159695912 (patch) | |
tree | 11a1e2c0187b30e8c969bb3e695e1416f2d2a579 /synapse/server.py | |
parent | Validate that the session is not modified during UI-Auth (#7068) (diff) | |
download | synapse-e8e2ddb60ae11db488f159901d918cb159695912.tar.xz |
Allow server admins to define and enforce a password policy (MSC2000). (#7118)
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 9426eb1672..d0d80e8ac5 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -66,6 +66,7 @@ from synapse.handlers.groups_local import GroupsLocalHandler, GroupsLocalWorkerH from synapse.handlers.initial_sync import InitialSyncHandler from synapse.handlers.message import EventCreationHandler, MessageHandler from synapse.handlers.pagination import PaginationHandler +from synapse.handlers.password_policy import PasswordPolicyHandler from synapse.handlers.presence import PresenceHandler from synapse.handlers.profile import BaseProfileHandler, MasterProfileHandler from synapse.handlers.read_marker import ReadMarkerHandler @@ -199,6 +200,7 @@ class HomeServer(object): "account_validity_handler", "saml_handler", "event_client_serializer", + "password_policy_handler", "storage", "replication_streamer", ] @@ -535,6 +537,9 @@ class HomeServer(object): def build_event_client_serializer(self): return EventClientSerializer(self) + def build_password_policy_handler(self): + return PasswordPolicyHandler(self) + def build_storage(self) -> Storage: return Storage(self, self.datastores) |