Browse Source

Fix return value in example on `password_auth_provider_callbacks.md` (#13450)

Fixes: #12534

Signed-off-by: Dirk Klimpel <dirk@klimpel.org>
Dirk Klimpel 1 year ago
parent
commit
afbdbe0634
2 changed files with 3 additions and 2 deletions
  1. 1 0
      changelog.d/13450.doc
  2. 2 2
      docs/modules/password_auth_provider_callbacks.md

+ 1 - 0
changelog.d/13450.doc

@@ -0,0 +1 @@
+Fix example code in module documentation of `password_auth_provider_callbacks`.

+ 2 - 2
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)
 ```