Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

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

Fixes: #12534

Signed-off-by: Dirk Klimpel <[email protected]>
  • Loading branch information
dklimpel committed Aug 4, 2022
1 parent 166fafd commit afbdbe0
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 afbdbe0

Please sign in to comment.