mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 17:52:04 +00:00
Make minor correction to type of auth_checkers callbacks (#11253)
This commit is contained in:
parent
f36434590c
commit
499c44d696
1
changelog.d/11253.misc
Normal file
1
changelog.d/11253.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Make minor correction to the type of `auth_checkers` callbacks.
|
@ -11,7 +11,7 @@ registered by using the Module API's `register_password_auth_provider_callbacks`
|
|||||||
_First introduced in Synapse v1.46.0_
|
_First introduced in Synapse v1.46.0_
|
||||||
|
|
||||||
```python
|
```python
|
||||||
auth_checkers: Dict[Tuple[str,Tuple], Callable]
|
auth_checkers: Dict[Tuple[str, Tuple[str, ...]], Callable]
|
||||||
```
|
```
|
||||||
|
|
||||||
A dict mapping from tuples of a login type identifier (such as `m.login.password`) and a
|
A dict mapping from tuples of a login type identifier (such as `m.login.password`) and a
|
||||||
|
@ -1989,7 +1989,9 @@ class PasswordAuthProvider:
|
|||||||
self,
|
self,
|
||||||
check_3pid_auth: Optional[CHECK_3PID_AUTH_CALLBACK] = None,
|
check_3pid_auth: Optional[CHECK_3PID_AUTH_CALLBACK] = None,
|
||||||
on_logged_out: Optional[ON_LOGGED_OUT_CALLBACK] = None,
|
on_logged_out: Optional[ON_LOGGED_OUT_CALLBACK] = None,
|
||||||
auth_checkers: Optional[Dict[Tuple[str, Tuple], CHECK_AUTH_CALLBACK]] = None,
|
auth_checkers: Optional[
|
||||||
|
Dict[Tuple[str, Tuple[str, ...]], CHECK_AUTH_CALLBACK]
|
||||||
|
] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
# Register check_3pid_auth callback
|
# Register check_3pid_auth callback
|
||||||
if check_3pid_auth is not None:
|
if check_3pid_auth is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user