mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-24 20:39:22 -05:00
Fix return value in example on password_auth_provider_callbacks.md
(#13450)
Fixes: #12534 Signed-off-by: Dirk Klimpel <dirk@klimpel.org>
This commit is contained in:
parent
166fafdf8d
commit
afbdbe0634
1
changelog.d/13450.doc
Normal file
1
changelog.d/13450.doc
Normal file
@ -0,0 +1 @@
|
||||
Fix example code in module documentation of `password_auth_provider_callbacks`.
|
@ -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)
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user