Skip to content

Commit

Permalink
Formatting: black
Browse files Browse the repository at this point in the history
  • Loading branch information
smcgu committed Jan 29, 2025
1 parent dd57108 commit be69a04
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ghostwriter/users/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,18 @@ def is_open_for_signup(self, request: HttpRequest, sociallogin: Any):
# Registration is not allowed
return False

def authentication_error(self, request, provider_id, error, exception, extra_context):
logger.error("Error authenticating with social account: %s %s %s", error, exception, extra_context)
super().authentication_error(request, provider_id, error, exception, extra_context)
def authentication_error(
self, request, provider_id, error, exception, extra_context
):
logger.error(
"Error authenticating with social account: %s %s %s",
error,
exception,
extra_context,
)
super().authentication_error(
request, provider_id, error, exception, extra_context
)

def populate_user(self, request, sociallogin, data):
username = data.get("username")
Expand Down

0 comments on commit be69a04

Please sign in to comment.