Skip to content

Commit

Permalink
add email alias
Browse files Browse the repository at this point in the history
  • Loading branch information
constant committed Jun 6, 2024
1 parent 4bfb15e commit f91df61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions app/routes/_auth.forgot-password.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
type ActionFunctionArgs,
type MetaFunction,
redirect,
json,
} from "@remix-run/node";
import { withZod } from "@remix-validated-form/with-zod";
Expand All @@ -13,17 +12,14 @@ import {
import { css } from "styled-system/css";
import { z } from "zod";
import { FormInput, FormSubmitButton } from "~/components/Form";
import { lucia } from "~/libs/lucia";
import { prisma } from "~/libs/prisma";
import { Argon2id } from "~/libs/olso";
import * as m from "~/paraglide/messages";
import { Link, useActionData } from "@remix-run/react";
import { generateRandomString, alphabet } from "oslo/crypto";
import { useEffect } from "react";
import toast from "react-hot-toast";
import { environment } from "~/libs/environment.server";
import { Resend } from "resend";
import ResetPasswordEmail from "@/../emails/reset-password";
import ResetPasswordEmail from "~emails/reset-password";

export const validator = withZod(
z.object({
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
"~/*": ["./app/*"],
"~emails/*": ["./emails/*"],
},

// Vite takes care of building everything, not tsc.
"noEmit": true
}
Expand Down

0 comments on commit f91df61

Please sign in to comment.