mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 16:38:34 +02:00
🐛 Fix issue where users are unable to login due to mismatch in case (#1579)
This commit is contained in:
parent
6923824ea7
commit
a1f50dc792
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export function OTPForm({ email }: { email: string }) {
|
|||
const handleSubmit = form.handleSubmit(async (data) => {
|
||||
const url = `${
|
||||
window.location.origin
|
||||
}/api/auth/callback/email?email=${encodeURIComponent(email)}&token=${data.otp}`;
|
||||
}/api/auth/callback/email?email=${encodeURIComponent(email.toLowerCase())}&token=${data.otp}`;
|
||||
|
||||
const res = await fetch(url);
|
||||
const resUrl = new URL(res.url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue