diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-08-04 14:03:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 13:03:36 +0100 |
commit | afbdbe063454e6748ba15b73866f1571f1e6ffd8 (patch) | |
tree | fb49b624306acf8b6d9da8d2e7f884943ac849ea /docs | |
parent | synapse-workers docker: copy nginx and redis in from base images (#13447) (diff) | |
download | synapse-afbdbe063454e6748ba15b73866f1571f1e6ffd8.tar.xz |
Fix return value in example on `password_auth_provider_callbacks.md` (#13450)
Fixes: #12534 Signed-off-by: Dirk Klimpel <dirk@klimpel.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/modules/password_auth_provider_callbacks.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/modules/password_auth_provider_callbacks.md b/docs/modules/password_auth_provider_callbacks.md index ec810fd292..f6349d5404 100644 --- a/docs/modules/password_auth_provider_callbacks.md +++ b/docs/modules/password_auth_provider_callbacks.md @@ -263,7 +263,7 @@ class MyAuthProvider: return None if self.credentials.get(username) == login_dict.get("my_field"): - return self.api.get_qualified_user_id(username) + return (self.api.get_qualified_user_id(username), None) async def check_pass( self, @@ -280,5 +280,5 @@ class MyAuthProvider: return None if self.credentials.get(username) == login_dict.get("password"): - return self.api.get_qualified_user_id(username) + return (self.api.get_qualified_user_id(username), None) ``` |