Skip to content

Commit

Permalink
forgot smth again
Browse files Browse the repository at this point in the history
  • Loading branch information
Blocksnmore committed Jan 17, 2024
1 parent 5c3650e commit 8af6d32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
"javascriptreact": "html",
"typescriptreact": "html"
},
"deno.disablePaths": [
"./.react-email"
],
"workbench.iconTheme": "vscode-icons"
"deno.disablePaths": ["./.react-email"],
"workbench.iconTheme": "vscode-icons"
}
2 changes: 1 addition & 1 deletion routes/api/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { deleteCookie, setCookie } from "$std/http/cookie.ts";
import { sendEmail } from "@/utils/email/client.ts";

const emailHTML = await Deno.readTextFile("./out/login.html");
const emailHTML = await Deno.readTextFile(`${import.meta.url}/out/login.html`);

const emailRegex =
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
Expand Down

0 comments on commit 8af6d32

Please sign in to comment.