mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -08:00
um
This commit is contained in:
parent
da4c4d202f
commit
82f3c31df2
|
@ -1,6 +1,5 @@
|
|||
import { createTransport } from "nodemailer"
|
||||
import config from "./config.js"
|
||||
import { generateFileId } from "./files.js"
|
||||
|
||||
const { mail } = config
|
||||
const transport = createTransport({
|
||||
|
@ -36,5 +35,3 @@ export function sendMail(to: string, subject: string, content: string) {
|
|||
)}<br><br><span style="opacity:0.5">If you do not believe that you are the intended recipient of this email, please disregard this message.</span>`,
|
||||
})
|
||||
}
|
||||
|
||||
export * as CodeMgr from "./codes.js"
|
|
@ -20,7 +20,6 @@ import {
|
|||
scheme,
|
||||
} from "../../../../lib/middleware.js"
|
||||
import ServeError from "../../../../lib/errors.js"
|
||||
import { CodeMgr, sendMail } from "../../../../lib/mail.js"
|
||||
|
||||
import Configuration from "../../../../lib/config.js"
|
||||
import { AccountSchemas, AuthSchemas, FileSchemas } from "../../../../lib/schemas/index.js"
|
||||
|
|
|
@ -22,7 +22,8 @@ import {
|
|||
verifyPoi,
|
||||
} from "../../../../lib/middleware.js"
|
||||
import ServeError from "../../../../lib/errors.js"
|
||||
import { CodeMgr, sendMail } from "../../../../lib/mail.js"
|
||||
import { sendMail } from "../../../../lib/mail.js"
|
||||
import * as CodeMgr from "../../../../lib/codes.js"
|
||||
|
||||
import Configuration from "../../../../lib/config.js"
|
||||
import { AccountSchemas, FileSchemas } from "../../../../lib/schemas/index.js"
|
||||
|
|
|
@ -3,7 +3,7 @@ import bytes from "bytes"
|
|||
import ServeError from "../../../lib/errors.js"
|
||||
import * as Accounts from "../../../lib/accounts.js"
|
||||
import type Files from "../../../lib/files.js"
|
||||
import { CodeMgr } from "../../../lib/mail.js"
|
||||
import * as CodeMgr from "../../../lib/codes.js"
|
||||
import { Hono } from "hono"
|
||||
import { getAccount, login } from "../../../lib/middleware.js"
|
||||
export let router = new Hono<{
|
||||
|
|
Loading…
Reference in a new issue