Skip to content

Commit 6c580ea

Browse files
committed
add basic docstrings #1895
1 parent 67c2d3e commit 6c580ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

login/adapters.py

+8
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@
1414

1515

1616
class AccountAdapter(DefaultAccountAdapter):
17+
"""
18+
Handles default logins
19+
"""
20+
1721
def is_open_for_signup(self, request: HttpRequest) -> bool:
1822
return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True)
1923

2024

2125
class SocialAccountAdapter(DefaultSocialAccountAdapter):
26+
"""
27+
Handles logins via 3rd party organizations like ORCID.
28+
"""
29+
2230
def is_open_for_signup(
2331
self, request: HttpRequest, sociallogin: SocialLogin
2432
) -> bool:

0 commit comments

Comments
 (0)