Skip to content

Commit

Permalink
fixes python code error
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed May 6, 2024
1 parent 5425741 commit 130218c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def override_thirdparty_functions(original_implementation: RecipeInterface):
tenant_id: str,
user_context: Dict[str, Any]
) -> SignInUpOkResult:
existing_users = await get_users_by_email(email, tenant_id, user_context)
existing_users = await get_users_by_email(tenant_id, email, user_context)
if (len(existing_users) == 0):
# this means this email is new so we allow sign up
return await original_sign_in_up(third_party_id, third_party_user_id, email, oauth_tokens, raw_user_info_from_provider, tenant_id, user_context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def override_^{codeImportRecipeName}_functions(original_implementation: RecipeIn
tenant_id: str,
user_context: Dict[str, Any]
) -> ^{pythonThirdPartySignInUpOkResult}:
existing_users = await get_users_by_email(email, tenant_id, user_context)
existing_users = await get_users_by_email(tenant_id, email, user_context)
if (len(existing_users) == 0):
if not await is_email_allowed(email):
raise Exception("No sign up")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def override_thirdpartyemailpassword_functions(original_implementation: RecipeIn
tenant_id: str,
user_context: Dict[str, Any]
) -> ThirdPartySignInUpOkResult:
existing_users = await get_users_by_email(email, tenant_id, user_context)
existing_users = await get_users_by_email(tenant_id, email, user_context)
if (len(existing_users) == 0):
# this means this email is new so we allow sign up
return await original_thirdparty_sign_in_up(third_party_id, third_party_user_id, email, oauth_tokens, raw_user_info_from_provider, tenant_id, user_context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def override_^{codeImportRecipeName}_functions(original_implementation: RecipeIn
tenant_id: str,
user_context: Dict[str, Any]
) -> ^{pythonThirdPartySignInUpOkResult}:
existing_users = await get_users_by_email(email, tenant_id, user_context)
existing_users = await get_users_by_email(tenant_id, email, user_context)
if (len(existing_users) == 0):
if not await is_email_allowed(email):
raise Exception("No sign up")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def override_^{codeImportRecipeName}_functions(original_implementation: RecipeIn
tenant_id: str,
user_context: Dict[str, Any]
) -> ^{pythonThirdPartySignInUpOkResult}:
existing_users = await get_users_by_email(email, tenant_id, user_context)
existing_users = await get_users_by_email(tenant_id, email, user_context)
if (len(existing_users) == 0):
if not await is_email_allowed(email):
raise Exception("No sign up")
Expand Down

0 comments on commit 130218c

Please sign in to comment.