-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81cf53d
commit c1ec3c9
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ async def func( | |
): | ||
if a.get("DO_NOT_LINK"): | ||
return ShouldNotAutomaticallyLink() | ||
if i.get("email") == "[email protected]" and l is None: | ||
if i.email == "[email protected]" and l is None: | ||
return ShouldNotAutomaticallyLink() | ||
return ShouldAutomaticallyLink(should_require_verification=False) | ||
|
||
|
@@ -101,17 +101,17 @@ async def func( | |
): | ||
if a.get("DO_NOT_LINK"): | ||
return ShouldNotAutomaticallyLink() | ||
if i.get("email") == "[email protected]" and l is None: | ||
if i.email == "[email protected]" and l is None: | ||
return ShouldNotAutomaticallyLink() | ||
return ShouldAutomaticallyLink(should_require_verification=True) | ||
|
||
if ( | ||
'async(i,e)=>{if("emailpassword"===i.recipeId){if(!((await supertokens.listUsersByAccountInfo("public",{email:i.email})).length>1))return{shouldAutomaticallyLink:!1}}return{shouldAutomaticallyLink:!0,shouldRequireVerification:!0}}' | ||
in eval_str | ||
): | ||
if i.get("recipeId") == "emailpassword": | ||
if i.recipe_id == "emailpassword": | ||
users = await list_users_by_account_info( | ||
"public", AccountInfo(email=i.get("email")) | ||
"public", AccountInfo(email=i.email) | ||
) | ||
if len(users) <= 1: | ||
return ShouldNotAutomaticallyLink() | ||
|