From 08448a98ccab9f7db248f7a84c860e962bde15c4 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Wed, 3 Aug 2022 21:42:31 +0200 Subject: [PATCH 1/2] Fix return value in example on `password_auth_provider_callbacks.md` --- docs/modules/password_auth_provider_callbacks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/password_auth_provider_callbacks.md b/docs/modules/password_auth_provider_callbacks.md index ec810fd292e5..f6349d5404f4 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) ``` From bf7c52a21ea22a06d7c69f4d20ad3e6a27fcdc91 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Wed, 3 Aug 2022 21:45:20 +0200 Subject: [PATCH 2/2] newsfile --- changelog.d/13450.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/13450.doc diff --git a/changelog.d/13450.doc b/changelog.d/13450.doc new file mode 100644 index 000000000000..e272baff0ae8 --- /dev/null +++ b/changelog.d/13450.doc @@ -0,0 +1 @@ +Fix example code in module documentation of `password_auth_provider_callbacks`.