aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/signin
diff options
context:
space:
mode:
authorZach <sweepyoface@gmail.com>2024-12-19 09:36:07 -0800
committerGitHub <noreply@github.com>2024-12-19 19:36:07 +0200
commit16f2ce378b121dcbea31708630def8ff95e90f14 (patch)
treeec125b31e655ed26e2ef6fcb6e5d164b8cf425bd /apps/web/components/signin
parent6fba9d1b836cf81e20d0a8b29c60d6ba8b8551e1 (diff)
downloadkarakeep-16f2ce378b121dcbea31708630def8ff95e90f14.tar.zst
fix: trim whitespace from email on signin page (#714)
* fix: trim whitespace from email * fix: trim email in setter Co-authored-by: Mohamed Bassem <me@mbassem.com> --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
Diffstat (limited to 'apps/web/components/signin')
-rw-r--r--apps/web/components/signin/CredentialsForm.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/components/signin/CredentialsForm.tsx b/apps/web/components/signin/CredentialsForm.tsx
index 313dc7c5..6a1bf985 100644
--- a/apps/web/components/signin/CredentialsForm.tsx
+++ b/apps/web/components/signin/CredentialsForm.tsx
@@ -65,7 +65,7 @@ function SignIn() {
onSubmit={form.handleSubmit(async (value) => {
const resp = await signIn("credentials", {
redirect: false,
- email: value.email,
+ email: value.email.trim(),
password: value.password,
});
if (!resp || !resp?.ok) {
@@ -146,7 +146,7 @@ function SignUp() {
}
const resp = await signIn("credentials", {
redirect: false,
- email: value.email,
+ email: value.email.trim(),
password: value.password,
});
if (!resp || !resp.ok) {