Skip to content

Commit

Permalink
Fill in email/password as default empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Apr 24, 2024
1 parent ef260e1 commit fb552b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/services/auth.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ authenticator.use(
new FormStrategy(async ({ form, context }) => {
if (!context) throw new Error("Where da context?");
const { trpc } = context;
const email = form.get("email") as string;
const password = form.get("password") as string;
const email = (form.get("email") || "") as string;
const password = (form.get("password") || "") as string;
const code = form.get("code") as string;

try {
Expand Down

0 comments on commit fb552b9

Please sign in to comment.