Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix issue where users are unable to login due to mismatch in case (#1579)

Luke Vellaa1f50dc79224
diff --git a/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx b/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx
index d9d21e2be..f776a09c1 100644
--- a/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx
+++ b/apps/web/src/app/[locale]/(auth)/login/verify/components/otp-form.tsx
@@ -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);