Skip to content

Commit

Permalink
add basic docstrings #1895
Browse files Browse the repository at this point in the history
  • Loading branch information
jh-RLI committed Dec 5, 2024
1 parent 67c2d3e commit 6c580ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions login/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@


class AccountAdapter(DefaultAccountAdapter):
"""
Handles default logins
"""

def is_open_for_signup(self, request: HttpRequest) -> bool:
return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True)


class SocialAccountAdapter(DefaultSocialAccountAdapter):
"""
Handles logins via 3rd party organizations like ORCID.
"""

def is_open_for_signup(
self, request: HttpRequest, sociallogin: SocialLogin
) -> bool:
Expand Down

0 comments on commit 6c580ea

Please sign in to comment.