diff --git a/frontend/src/components/auth/SignInForm.tsx b/frontend/src/components/auth/SignInForm.tsx index 1dc1600..17beb33 100644 --- a/frontend/src/components/auth/SignInForm.tsx +++ b/frontend/src/components/auth/SignInForm.tsx @@ -97,7 +97,7 @@ const SignInForm = ({ redirectPath }: { redirectPath: string }) => { const signIn = async (email: string, password: string) => { await authService - .signIn(email, password) + .signIn(email.trim(), password.trim()) .then(async (response) => { if (response.data["loginToken"]) { // Prompt the user to enter their totp code diff --git a/frontend/src/components/auth/SignUpForm.tsx b/frontend/src/components/auth/SignUpForm.tsx index 50a9f97..8617d87 100644 --- a/frontend/src/components/auth/SignUpForm.tsx +++ b/frontend/src/components/auth/SignUpForm.tsx @@ -48,7 +48,7 @@ const SignUpForm = () => { const signUp = async (email: string, username: string, password: string) => { await authService - .signUp(email, username, password) + .signUp(email.trim(), username.trim(), password.trim()) .then(async () => { const user = await refreshUser(); if (user?.isAdmin) {