This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ Port the Password Auth Providers module interface to the new generic interface.
Original file line number Diff line number Diff line change 62
62
from synapse .http .site import SynapseRequest
63
63
from synapse .logging .context import defer_to_thread
64
64
from synapse .metrics .background_process_metrics import run_as_background_process
65
- from synapse .module_api import ModuleApi
66
65
from synapse .storage .roommember import ProfileInfo
67
66
from synapse .types import JsonDict , Requester , UserID
68
67
from synapse .util import stringutils as stringutils
73
72
from synapse .util .threepids import canonicalise_email
74
73
75
74
if TYPE_CHECKING :
75
+ from synapse .module_api import ModuleApi
76
76
from synapse .rest .client .login import LoginResponse
77
77
from synapse .server import HomeServer
78
78
@@ -1818,7 +1818,9 @@ def load_legacy_password_auth_providers(hs: "HomeServer") -> None:
1818
1818
1819
1819
1820
1820
def load_single_legacy_password_auth_provider (
1821
- module : Type , config : JsonDict , api : ModuleApi
1821
+ module : Type ,
1822
+ config : JsonDict ,
1823
+ api : "ModuleApi" ,
1822
1824
) -> None :
1823
1825
try :
1824
1826
provider = module (config = config , account_handler = api )
You can’t perform that action at this time.
0 commit comments