Skip to content

Commit

Permalink
Fix return value in example on password_auth_provider_callbacks.md (m…
Browse files Browse the repository at this point in the history
…atrix-org#13450)

Fixes: matrix-org#12534

Signed-off-by: Dirk Klimpel <dirk@klimpel.org>
  • Loading branch information
dklimpel authored and azmeuk committed Aug 8, 2022
1 parent d692658 commit a47f581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/13450.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix example code in module documentation of `password_auth_provider_callbacks`.
4 changes: 2 additions & 2 deletions docs/modules/password_auth_provider_callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
```

0 comments on commit a47f581

Please sign in to comment.