-
Notifications
You must be signed in to change notification settings - Fork 319
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
Showing
1 changed file
with
5 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -337,9 +337,8 @@ async def verify_email( | |
from r2r import R2RClient | ||
client = R2RClient() | ||
tokens = client.users.verify_email( | ||
tokens = client.users.send_verification_email( | ||
email="[email protected]", | ||
verification_code="1lklwal!awdclm" | ||
)""" | ||
), | ||
}, | ||
|
@@ -352,9 +351,8 @@ async def verify_email( | |
const client = new r2rClient(); | ||
function main() { | ||
const response = await client.users.verifyEmail({ | ||
const response = await client.users.sendVerificationEmail({ | ||
email: [email protected]", | ||
verificationCode: "1lklwal!awdclm" | ||
}); | ||
} | ||
|
@@ -366,9 +364,9 @@ async def verify_email( | |
"lang": "cURL", | ||
"source": textwrap.dedent( | ||
""" | ||
curl -X POST "https://api.example.com/v3/users/login" \\ | ||
curl -X POST "https://api.example.com/v3/users/send-verification-email" \\ | ||
-H "Content-Type: application/x-www-form-urlencoded" \\ | ||
-d "[email protected]&verification_code=1lklwal!awdclm" | ||
-d "[email protected]" | ||
""" | ||
), | ||
}, | ||
|
@@ -391,9 +389,7 @@ async def send_verification_email( | |
message="This email is already verified. Please log in.", | ||
) | ||
|
||
result = await self.services.auth.send_verification_email( | ||
email=email | ||
) | ||
await self.services.auth.send_verification_email(email=email) | ||
return GenericMessageResponse(message="A verification email has been sent.") # type: ignore | ||
|
||
@self.router.post( | ||
|