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

Fix return value in example on password_auth_provider_callbacks.md #13450

Merged
merged 2 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
```