Skip to content

Commit 1305142

Browse files
committed
test: Fix failing emailpassword tests
1 parent e5354d9 commit 1305142

File tree

1 file changed

+2
-2
lines changed
  • supertokens_python/recipe/emailpassword

1 file changed

+2
-2
lines changed

supertokens_python/recipe/emailpassword/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def default_validator(_: str, __: str) -> Union[str, None]:
4242
return None
4343

4444

45-
async def default_password_validator(_: str, value: str) -> Union[str, None]:
45+
async def default_password_validator(value: str, _tenant_id: str) -> Union[str, None]:
4646
# length >= 8 && < 100
4747
# must have a number and a character
4848
# as per
@@ -62,7 +62,7 @@ async def default_password_validator(_: str, value: str) -> Union[str, None]:
6262
return None
6363

6464

65-
async def default_email_validator(_: str, value: Any) -> Union[str, None]:
65+
async def default_email_validator(value: Any, _tenant_id: str) -> Union[str, None]:
6666
# We check if the email syntax is correct
6767
# As per https://github.com/supertokens/supertokens-auth-react/issues/5#issuecomment-709512438
6868
# Regex from https://stackoverflow.com/a/46181/3867175

0 commit comments

Comments
 (0)