Skip to content

Commit a47f581

Browse files
dklimpelazmeuk
authored andcommitted
Fix return value in example on password_auth_provider_callbacks.md (matrix-org#13450)
Fixes: matrix-org#12534 Signed-off-by: Dirk Klimpel <[email protected]>
1 parent d692658 commit a47f581

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/13450.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix example code in module documentation of `password_auth_provider_callbacks`.

docs/modules/password_auth_provider_callbacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class MyAuthProvider:
263263
return None
264264

265265
if self.credentials.get(username) == login_dict.get("my_field"):
266-
return self.api.get_qualified_user_id(username)
266+
return (self.api.get_qualified_user_id(username), None)
267267

268268
async def check_pass(
269269
self,
@@ -280,5 +280,5 @@ class MyAuthProvider:
280280
return None
281281

282282
if self.credentials.get(username) == login_dict.get("password"):
283-
return self.api.get_qualified_user_id(username)
283+
return (self.api.get_qualified_user_id(username), None)
284284
```

0 commit comments

Comments
 (0)