mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-09 16:20:28 -06:00
chore: adds check for lowercase emails (#1693)
This commit is contained in:
committed by
GitHub
parent
6be825184a
commit
b40ddbf47b
@@ -48,7 +48,7 @@ export const SigninForm = ({
|
||||
try {
|
||||
const signInResponse = await signIn("credentials", {
|
||||
callbackUrl: searchParams?.get("callbackUrl") || "/",
|
||||
email: data.email,
|
||||
email: data.email.toLowerCase(),
|
||||
password: data.password,
|
||||
...(totpLogin && { totpCode: data.totpCode }),
|
||||
...(totpBackup && { backupCode: data.backupCode }),
|
||||
|
||||
@@ -7,7 +7,7 @@ const VerificationPageSchema = z.string().email();
|
||||
export default function VerificationPage(params) {
|
||||
const email = params.searchParams.email;
|
||||
try {
|
||||
const parsedEmail = VerificationPageSchema.parse(email);
|
||||
const parsedEmail = VerificationPageSchema.parse(email).toLowerCase();
|
||||
return (
|
||||
<FormWrapper>
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user